The current behavior was chosen because it allows you to put the enum in a
module or not. I agree that it's often nice to do so. One issue is that the
module name and the enum name "want" to be the same, which doesn't work
well, so you'd need to provide both an inner enum name and an outer module
name.

On Tue, Aug 23, 2016 at 8:50 AM, Paul Sorensen <aed...@gmail.com> wrote:

> The following code is my idea for doing enums in julia, I tried pasting
> the code but google groups breaks it:
> http://pastebin.com/Vxw0KdmC
> Let me know what you think. Is it a good idea?
>
>
> <https://lh3.googleusercontent.com/-9S71xNnAVLY/V7xGW8c1HxI/AAAAAAAAe6w/WYhbrWutctwl6lYceiTympsRhni5cavQgCLcB/s1600/Screenshot%2Bfrom%2B2016-08-23%2B08-48-12.png>
>
>

Reply via email to