|
|
|
|
|
by usrbinbash
960 days ago
|
|
> And no, the language doesn't "handle that easily enough". Yes, the language handles it easily enough. ADTs, despite being the single most used example of "what Go doesn't have" since the language got generics, are not very common outside of the ML-derived-language world. If they occur at all, they are usually used in a few very specific places. An example are AST types that are used in exactly the part of the parser handling that type. |
|
I expect much like generics, we'll get some new version of Go eventually that half-asses ADTs, with much fanfare celebrating how they were totally always going to do it, they just needed to perfect it.