Settings

Theme

What if TypeScript was right about union types?

cirw.in

2 points by goranmoomin 3 months ago · 1 comment

Reader

austin-cheney 3 months ago

In TypeScript I only have interfaces and union types. I never have generics except with arrays and that’s only because TypeScript makes me.

As a result, older versions of the TSC checker would take up to 13 seconds on my largest project (greater than 50k loc) on old hardware. Type systems are not meant to be programming languages.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection