3 ms·
Type deduction isn't a terrible hardship, and should make the code look dynamic. A simple debugging output can attach the types visibly. So... My question is
by shakna 9y ago
Type deduction isn't a terrible hardship, and should make the code look dynamic.
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.
- girvo 9y agoFlow 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.