3 ms·
Apparently an unpopular opinion, but actually strong types are useful above and beyond editor linting errors. - Jit optimizations - Less error checking code pa
by coryvirok 1y ago
Apparently an unpopular opinion, but actually strong types are useful above and beyond editor linting errors.
- Jit optimizations
- Less error checking code paths leading to smaller footprints
- Smaller footprints leading to smaller vulnerability surface area
- less useful: refactorability
Don't get me wrong, I love the flexibility of JavaScript. But you shouldn't rely on it to handle your poorly written code.
- crummy 1y agoHow do you get JIT optimizations from TypeScript types? Don't the types get stripped before you run it?