3 ms·
Author here: Go does not have support for discriminated unions. The trick is not limited to functional programming languages but it is limited to languages tha
by Gabriel439 6y ago
Author here: Go does not have support for discriminated unions.
The trick is not limited to functional programming languages but it is limited to languages that support generic programming / polymorphism