4 ms·
Typescript will give you compile-time type checking, but the actual runtime (javascript) is weakly typed. For me this is the main problem with the language, ot
by flavio81 9y ago
Typescript will give you compile-time type checking, but the actual runtime (javascript) is weakly typed.
For me this is the main problem with the language, otherwise it is a good language even without compile time type checking.
- pbowyer 9y ago> 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.