Re:JavaScript for squares: The incredible rise of TypeScript
by girvo on Tuesday July 25, 2017 @09:41PM
(#14853200)
Flow doesn't require you to write what's above at all for the most part, and it's type inference and flow analysis is amazing. Your applications code will have few type hints if that's what you want, and your core libraries can have the extremely specific types as what's show in the parent post. I dunno, I like TS and Flow, and gradual typing with excellent inference means it rarely gets in my way, even when calling out to JS libraries that are as dynamic and loose as you can get.
A simple debugging output can attach the types visibly.
So... My question is why these statically typed JSs add such verbose syntax?
Even C++ has had auto to avoid irritating boilerplate.