Gradual typing and language constraints

TypeScript, C# and Turbo Pascal with Anders Hejlsberg

Topic 14 of 21

Published May 13, 2026 · Clip 48:15–52:07 (3:52)

Anders explains TypeScript tracks the ECMAScript committee, implementing stage 3-4 features, while the type system is its own playground. He wishes JavaScript supported let-style symbolic names within expressions for a fluent, functional style (do-expressions are stalled). He highlights TypeScript's gradual typing: types exist purely for the development experience and are erased at runtime. Because JavaScript's runtime already has well-defined behavior, the type system doesn't need to prove 100% correctness—checking 99% is far better than JavaScript's 0%—enabling features other languages can't provide, such as handling infinitely recursive structural types with depth-limited proofs.