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

Golang

2197 readers
1 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.