this post was submitted on 21 Aug 2023
15 points (94.1% liked)

Golang

313 readers
8 users here now

This is a community dedicated to the go programming language.

Useful Links:

Rules:

founded 1 year ago
MODERATORS
 

Not a hard question. It’s sum types! (Or enums, tagged unions, or whatever you want to call them).

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago

I do hate the way enums are in Go. It's just barely better than using a string or int in most cases.