Max Wells’ Post

TypeScript told you everything was fine. It lied. 8pm. Your phone buzzes. Slack from the CTO. "Something is broken in prod." You open the logs. undefined is not a function. But... the types were correct. You checked. TypeScript didn't complain. Then you see it. Someone used as SomeType three PRs ago to shut up the compiler. The API returned something different. TypeScript never saw it. It always is. TypeScript makes JavaScript safer. It doesn't make it safe. The gap is real. And it always shows up at the worst possible time. Rust makes a different promise. If it compiles, the type contract holds. Everywhere. Always. No casting your way out. No any as escape hatch. No "it should be fine" at 2am. That's a different guarantee entirely. Follow me. #rust #typescript #javascript #programming

To view or add a comment, sign in

Explore content categories