Re:JavaScript for People Who Hate JavaScript
by pbowyer on Wednesday August 09, 2017 @02:47PM
(#14972355)
> Typescript will give you compile-time type checking, but the actual runtime (javascript) is weakly typed.
Yes and this sucks. There have been a few bugs I've had (can't remember details) where the types or visibility looked OK in the editor but I was bitten at runtime.
No doubt due to my loose configuration - tightening up the linter would help and getting rid of null/undefined overlaps is my next move.
For me this is the main problem with the language, otherwise it is a good language even without compile time type checking.