TLDR Dev · QUICK LINKS

THE TEMPORAL DEAD ZONE, OR WHY THE TYPESCRIPT CODEBASE IS LITTERED WITH VAR STATEMENTS

vincentrolfs.dev4 min read

Summary from the TLDR Dev newsletter

The TypeScript codebase still uses `var` statements despite their drawbacks due to the performance benefits gained by avoiding the Temporal Dead Zone (which prevents accessing variables before their declaration with `const` and `let`).