Hacker News new | ask | show | jobs
by coryvirok 400 days 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.

1 comments

How do you get JIT optimizations from TypeScript types? Don't the types get stripped before you run it?