DEV Community

Discussion on: What do you dislike about your favorite language?

Collapse
 
ecnepsnai profile image
Ian Spence

Golangs lack of enum support is easily the most annoying thing about the language for me.

Currently I have a ruby script that has an enum schema and it prints out golang code for each enum it has all of the constants, an array of all the values, and a function to test if a given object is one of the enum values.