Rust-Inspired Typescript
summary
Rust habits mapped to concrete TypeScript patterns: make impossible states explicit with discriminated unions and exhaustive never checks, return Result-like types instead of throwing using better result, validate unknown edges with runtime schemas like Zod and domain-wrapped IDs, and signal local mutation intent by separating mutable from readonly shapes (borrow-vs-mutate mindset). A surprising practical datapoint: the codebase totals quarter million lines of TypeScript, and examples show V+ as a unified toolchain alternative.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 2:10TypeScript needs Rust improvements
- 6:00Impossible states and unions
- 11:15Explicit failures with Result
- 15:48Boundary validation
- 23:26Local mutations and contracts
- 26:59Tooling and workflows
- 27:41AI code generation benefits
- 29:04Key takeaways and closing remarks
related talks
20mBetter Together: Rust & TypeScript
22mThink you know TypeScript? Think again.
11mThe Joy of Typescript
34mNot Your Uncle’s Clean Code (TypeScript Edition)
24mTypeScript for JavaScripties
44mA Deep Dive Into Advanced TypeScript - A Live Coding Expedition
21mThe long-tail of type safety
01h 01mAdvanced TypeScript Type Utilities
