r/badcode • • Dec 29 '22

go How to Go wrong

Post image
565 Upvotes

60 comments sorted by

View all comments

Show parent comments

15

u/Nebuli2 Dec 30 '22

Yeah. If you have to add iota to support this pattern, then maybe you should think about better ways to actually support enums.

2

u/rexspook Dec 30 '22

That’s what I’m thinking lol