Syntax for documenting enum members

It would be nice to have a syntax for documenting enum members. For instance:

@enum Fruit begin
       "round"
       APPLE
       "long"
       BANANA
end

which is currently an error.

Thoughts?

1 Like

This is supported in EnumX.jl. That particular feature is trivial to upstream if you want it also for Base.Enum.

3 Likes