TE
TechEcho
Home
24h Top
Newest
Best
Ask
Show
Jobs
English
GitHub
Twitter
Home
The Discriminated Union: Writing Easy-to-Use Types in TypeScript
3 points
by
philk10
over 1 year ago
1 comment
bfeynman
over 1 year ago
While neat, this does not align with what I consider readable code. Outside of an IDE, this code can be quite hard to follow when you start to introduce tricks like these, especially since it's not paradigm in other languages.