How can I determine the name of an enum value?

You need to use Symbol to get the name. That can then be converted to a string though

julia> @enum Animal dog cat

julia> Symbol(cat)
:cat

julia> String(Symbol(cat))
"cat"
3 Likes