Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
The_rationalist
· 6y ago · 0 comments
taking full advantage of ADTs
What? There is no clean way to switch on the types of an ADT on typescript, I believe.
Comments
[–]
alexcole
6y ago
Well discriminated unions are TypeScript's implementation of ADTs (but whether they are "clean" is could be debated)