Re:Announcing TypeScript 2.0
by qwertyuiop924 on Friday September 23, 2016 @05:36AM
(#12563367)
...No, it won't. It might make the refactoring a little easier, but with various tools, you can check all the call sites and see if you fixed it. Sure, your compiler won't tell you what's wrong, but your REPL and your tests will.
[ Parent
| on HN ]
Re:Announcing TypeScript 2.0
by FrancoDiaz on Friday September 23, 2016 @08:43AM
(#12564106)
Yes, given enough time for enough manual work, and enough tests, and enough code review....
The whole point is not to have to do this stuff manually, which is very error prone. Ad-hoc REPL work, and tests are very likely to have missed something.
Precisely.
It will absolutely save you, because it will complain loudly about every broken call site and prevent the broken code from making it to production (assuming you didn't use any tricks with any). Tests may or may not help (I have yet to see a codebase with perfect test coverage).
Re:Announcing TypeScript 2.0
by stcredzero on Friday September 23, 2016 @04:44PM
(#12567810)
Sure, your compiler won't tell you what's wrong, but your REPL and your tests will.
If a REPL and tests make you powerful, then a type system that doesn't drag you down and good tooling around that will only make you more powerful.