News for hackers. Stuff that matters.
Re:TypeScript’s quirks: How inconsistencies make the languag... by The_rationalist on Saturday February 01, 2020 @08:44AM (#22210458)
taking full advantage of ADTs What? There is no clean way to switch on the types of an ADT on typescript, I believe.
Re:TypeScript’s quirks: How inconsistencies make the languag... by alexcole on Saturday February 01, 2020 @08:43PM (#22214584)
Well discriminated unions are TypeScript's implementation of ADTs (but whether they are "clean" is could be debated)