News for hackers. Stuff that matters.
Re:First look: adding type annotations to JavaScript by nobleach on Thursday March 10, 2022 @11:59AM (#30629194)
I get that this is a humble opinion. And I respect that. But for a language that draws so much ire from the programming community, and yet demonstrates such an ability to change and morph over the years. Are you saying you do NOT WANT it to get better? (and I realize "better" is subjective).

The same is true of PHP. People hate it. People complain. PHP takes the criticism and makes updates. People complain more.

Re:First look: adding type annotations to JavaScript by cphoover on Thursday March 10, 2022 @02:30PM (#30631340)
Of course I want it to get better. I just don't necessarily agree that a type-system = better, particularly in the way in which it's been suggested. Especially when you aren't talking about changing the internals regarding how JS is executed or how data is represented, you are only talking about adding "comments".

JavaScript has evolved as an untyped language, it has type-coercion and a single way to represent (most) objects in memory. So regardless of what kind of syntax you add on top... it will still be a untyped dynamic language internally. Are we talking about changing this truth? Or just adding additional syntax for developers?