{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/13138","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/13138/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/13138/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/13138/events","html_url":"https://github.com/JuliaLang/julia/issues/13138","id":106541956,"number":13138,"title":"List all possible values when printing an enum","user":{"login":"nalimilan","id":1120448,"avatar_url":"https://avatars.githubusercontent.com/u/1120448?v=3","gravatar_id":"","url":"https://api.github.com/users/nalimilan","html_url":"https://github.com/nalimilan","followers_url":"https://api.github.com/users/nalimilan/followers","following_url":"https://api.github.com/users/nalimilan/following{/other_user}","gists_url":"https://api.github.com/users/nalimilan/gists{/gist_id}","starred_url":"https://api.github.com/users/nalimilan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nalimilan/subscriptions","organizations_url":"https://api.github.com/users/nalimilan/orgs","repos_url":"https://api.github.com/users/nalimilan/repos","events_url":"https://api.github.com/users/nalimilan/events{/privacy}","received_events_url":"https://api.github.com/users/nalimilan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-15T12:08:23Z","updated_at":"2015-09-15T12:20:07Z","closed_at":null,"body":"At the moment, when you type the name of an enum at the REPL, you get a useless output:\r\n```julia\r\njulia> @enum FRUIT apple=1 orange=2 kiwi=3\r\n\r\njulia> FRUIT\r\nFRUIT\r\n```\r\n\r\nWouldn't it be more useful to show the list of possible values from `instances()`? Something like this:\r\n```julia\r\njulia> FRUIT\r\nEnum with 3 member values:\r\napple, orange, kiwi\r\n```\r\n\r\n(This would especially help since `instances` is hard to find: `methodswith(FRUIT)` does not list it.)\r\n\r\nCC: @quinnj"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/140371309","html_url":"https://github.com/JuliaLang/julia/issues/13138#issuecomment-140371309","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/13138","id":140371309,"user":{"login":"KristofferC","id":1282691,"avatar_url":"https://avatars.githubusercontent.com/u/1282691?v=3","gravatar_id":"","url":"https://api.github.com/users/KristofferC","html_url":"https://github.com/KristofferC","followers_url":"https://api.github.com/users/KristofferC/followers","following_url":"https://api.github.com/users/KristofferC/following{/other_user}","gists_url":"https://api.github.com/users/KristofferC/gists{/gist_id}","starred_url":"https://api.github.com/users/KristofferC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristofferC/subscriptions","organizations_url":"https://api.github.com/users/KristofferC/orgs","repos_url":"https://api.github.com/users/KristofferC/repos","events_url":"https://api.github.com/users/KristofferC/events{/privacy}","received_events_url":"https://api.github.com/users/KristofferC/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T12:20:07Z","updated_at":"2015-09-15T12:20:07Z","body":"Pardon my ignorance but `FRUIT` is just a `DataType` so how can you dispatch to print something separate for `FRUIT` that would not apply to all DataTypes?"}}