Re:Goenums: Type Safe Enum Generator for Go
by saghm on Saturday April 26, 2025 @10:43PM
(#43809043)
I'm not sure what you mean by this. It definitely doesn't have enums, not even in the C sense of "type alias for integers with names for specific constant values. Yes, it has iota, but that's orthogonal to enums; you could use it to define bitmasks, for example. While you can certainly use it in combination with a type alias to make something resembling an enum, I'd argue that's still not actually "having enums"; you could do the same thing in C with typedefs and constants even if it didn't have enums.
[ Parent
| on HN ]
There are no comments on this comment yet.