Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
TwentyPosts
· 2y ago · 0 comments
Since when does Go have algebraic data types? Like, even "awkwardly", I can think of nothing that even come close.
Comments
[–]
jpc0
2y ago
He 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...