Comment Comment by jchw I dunno if I'd consider having a dummy method on an interface as "elegant", but it does work. A trade-off of keeping the language very simple, for sure.What I really wish Go had was sum types, Rust style. That'd cover enumerations and more. parent jchw 3 years ago
What I really wish Go had was sum types, Rust style. That'd cover enumerations and more.