News for hackers. Stuff that matters.
Re:A rough proposal for sum types in Go (2018) by Ciantic on Tuesday November 16, 2021 @05:20AM (#29238911)
Yeah I was a bit sloppy when I wrote my answer. With GraphQL you can mimick tagged unions by giving each branch an object type.

I actully wrote just few days ago about how cool it would be if TypeScript-like language too had tags:

https://github.com/Ciantic/thoughts/blob/master/2021/dynamic...

There are no comments on this comment yet.