5 ms·
Since when does Go have algebraic data types? Like, even "awkwardly", I can think of nothing that even come close.
by TwentyPosts 2y ago
Since when does Go have algebraic data types? Like, even "awkwardly", I can think of nothing that even come close.
- jpc0 2y agoHe might be referring to switching on the type of an interface... Not ADT for sure but I mean it's possible as a cludge as a tagged union, but it's more akin to single inheritance to be fair...