3 ms·
“Anywhere that accepts an Operation Enum type will just as happily accept an int.” Hey! Just like in C! I digress, I think the issue is that the author comes f
by reactordev 3y ago
“Anywhere that accepts an Operation Enum type will just as happily accept an int.”
Hey! Just like in C! I digress, I think the issue is that the author comes from another language where enums are a thing. In go, they aren’t. Enums should be types. Types that don’t infer to an int. Use an interface. Be happy.