Re:Why Angular 2 Switched to TypeScript
by PeCaN on Saturday July 23, 2016 @10:50PM
(#12151994)
Maybe it's because I'm lazy and sloppy, but I'd rather the language catch type mistakes than having to write tests for that. Plus, domain modelling with types is nice in ML dialects.
[ Parent
| on HN ]
You're not writing tests to catch type errors. You write tests that actually use your code, where a type error will almost certainly be picked up.
Chances are however, your type error will already occur the first time you run your code.