Hacker News new | ask | show | jobs
by Gabriel439 1964 days 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