News for hackers. Stuff that matters.
Re:An Introduction to Type Level Programming in Haskell by scns on Friday September 10, 2021 @04:15AM (#28478967)
In TypeScript you can define your discriminated union with strings, they call it literal types:

  type Foo = "bar" | "baz" | "qux"

There are no comments on this comment yet.