Comment Comment by chrfrasco Sum types and exhaustiveness checking are doable with typescript! Though it's not especially ergonomichttps://www.typescriptlang.org/play?#code/C4TwDgpgBAygrgWygX... parent chrfrasco 6 years ago
https://www.typescriptlang.org/play?#code/C4TwDgpgBAygrgWygX...