!!!11!11!!1!!1!1!11!!!
btw, go has enums as well well, it doesn't look like what people are used to see in other languages (such as C family); but still they are enum you can search "enums in golang" in google and see some examples for yourself the thing is, I believe enums this way are more understandable for humans (and of course; since they are constants, they are easy for compiler as well) you can also see this article (it has some code samples)
nope, those aren't enums, those are constants
Those are not enums, those are just hacks that ressemble them
what's the difference tho? they have the same usage
enums are explicit types, we don't have enum types in Go
we still have iota will do the almost same work, won't it?
That's what mostly concerns me
Yeah, I like it when it is my compiler yelling at me and not my customer for some reason :)
(this is also why I mostly left dinamically typed languages)
Обсуждают сегодня