3 ms·
I'm not sure that I agree... AS3 had typing that was very similar (originally part of ES4 spec). I often feel that it can make some code that should be simple
by tracker1 8y ago
I'm not sure that I agree... AS3 had typing that was very similar (originally part of ES4 spec).
I often feel that it can make some code that should be simple more complicated and sometimes reduces some flexibility in practice, or is harder to define. What research I can find indicates it's mostly a wash on time. You prevent a certain class of bugs, but at the same time you have the time to add typing.
In the end, I think it depends. If you're working on a large project with a lot of developers in differing areas, the appeal is growing on me. In the end, when working on code you don't trust with behaviors that are loosely defined, you get at least a little more confidence in refactoring things out.
I've worked with and without. I prefer without, but now am working on a project I wish I'd started with it. I still want to use it with babel as there are a few features I want to use that are not yet in the browser.