by ecmascript · 6y ago · 0 comments
Next year it will be an article on how they ported everything to rust and webassembly and how that is just so much better than everything.
Of course they come to the conclusion that types and tests aren't the same thing. Otherwise you would never need tests, not even in dynamically typed languages.
Wrt to types and tests, "Types" means some verifiable annotations on the code. If a type system can encode enough information in them, perhaps with preconditions or other contracts, then would tests be superfluous? If so, I don't get your assertion about tests and dynamically typed languages.
On the other hand, since typescript is unsound, shouldn't you really test like a dynamically typed language?
Regardless, it was not about being some sort of hipster. It solved real problems: https://www.executeprogram.com/blog/porting-to-typescript-so... (this is linked from the part you quoted, of course.)