Comment

Comment by 9rx

Go enums are the same as in every single other language. After all, all an enum does is count. There isn't anything more you can do with it.

You can introduce data structures and types that utilize enums, with some languages taking that idea further than others, but that's well beyond enums themselves.

parent 9rx 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton