{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/3080","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/3080/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/3080/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/3080/events","html_url":"https://github.com/JuliaLang/julia/issues/3080","id":14226689,"number":3080,"title":"enum support in base","user":{"login":"StefanKarpinski","id":153596,"avatar_url":"https://avatars.githubusercontent.com/u/153596?v=3","gravatar_id":"","url":"https://api.github.com/users/StefanKarpinski","html_url":"https://github.com/StefanKarpinski","followers_url":"https://api.github.com/users/StefanKarpinski/followers","following_url":"https://api.github.com/users/StefanKarpinski/following{/other_user}","gists_url":"https://api.github.com/users/StefanKarpinski/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanKarpinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanKarpinski/subscriptions","organizations_url":"https://api.github.com/users/StefanKarpinski/orgs","repos_url":"https://api.github.com/users/StefanKarpinski/repos","events_url":"https://api.github.com/users/StefanKarpinski/events{/privacy}","received_events_url":"https://api.github.com/users/StefanKarpinski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/decision","name":"decision","color":"F08000"},{"url":"https://api.github.com/repos/JuliaLang/julia/labels/feature","name":"feature","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":27,"created_at":"2013-05-11T20:37:14Z","updated_at":"2015-02-05T02:00:36Z","closed_at":null,"body":"Currently [enum.jl lives in extras](https://github.com/JuliaLang/julia/blob/master/extras/enum.jl). Since enums are generally considered useful, we should do a proper design pass on enums and add them to base. Part of #2422. For design inspiration, the PEP might be helpful: http://www.python.org/dev/peps/pep-0435/."},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/72980903","html_url":"https://github.com/JuliaLang/julia/issues/3080#issuecomment-72980903","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/3080","id":72980903,"user":{"login":"elextr","id":811085,"avatar_url":"https://avatars.githubusercontent.com/u/811085?v=3","gravatar_id":"","url":"https://api.github.com/users/elextr","html_url":"https://github.com/elextr","followers_url":"https://api.github.com/users/elextr/followers","following_url":"https://api.github.com/users/elextr/following{/other_user}","gists_url":"https://api.github.com/users/elextr/gists{/gist_id}","starred_url":"https://api.github.com/users/elextr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elextr/subscriptions","organizations_url":"https://api.github.com/users/elextr/orgs","repos_url":"https://api.github.com/users/elextr/repos","events_url":"https://api.github.com/users/elextr/events{/privacy}","received_events_url":"https://api.github.com/users/elextr/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T02:00:36Z","updated_at":"2015-02-05T02:00:36Z","body":"So why give them numbers and convert to/from int?  Don't leak the implementation :)\r\n\r\nThe sets of bits passed to/from C functions in ints are different things to enums as @eschnett wants to use them, they shouldn't be the same concept.  \r\n\r\nPS I'm not advocating for/against, just asking some questions to ensure that they are considered."}}