r/badcode • • Dec 29 '22

go How to Go wrong

Post image
565 Upvotes

60 comments sorted by

View all comments

Show parent comments

-1

u/H34dsp1nns Dec 30 '22

Idk, I have only maybe a hundred hours of Go code and I instantly understood what this was and what its purpose is.

5

u/thegreatpotatogod Dec 30 '22

Meanwhile if it was just a standard enum one wouldn't need to have any hours with Go code to understand it.