3 ms·
taking full advantage of ADTs What? There is no clean way to switch on the types of an ADT on typescript, I believe.
by The_rationalist 7y ago
taking full advantage of ADTs
What? There is no clean way to switch on the types of an ADT on typescript, I believe.
- alexcole 7y agoWell discriminated unions are TypeScript's implementation of ADTs (but whether they are "clean" is could be debated)