this post was submitted on 21 Aug 2023
16 points (90.0% liked)

Golang

2231 readers
1 users here now

This is a community dedicated to the go programming language.

Useful Links:

Rules:

founded 2 years 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.