{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/18766","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/18766/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/18766/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/18766/events","html_url":"https://github.com/JuliaLang/julia/pull/18766","id":180534209,"number":18766,"title":"Allow x[] for get(x::Nullable)","user":{"login":"TotalVerb","id":12903942,"avatar_url":"https://avatars.githubusercontent.com/u/12903942?v=3","gravatar_id":"","url":"https://api.github.com/users/TotalVerb","html_url":"https://github.com/TotalVerb","followers_url":"https://api.github.com/users/TotalVerb/followers","following_url":"https://api.github.com/users/TotalVerb/following{/other_user}","gists_url":"https://api.github.com/users/TotalVerb/gists{/gist_id}","starred_url":"https://api.github.com/users/TotalVerb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TotalVerb/subscriptions","organizations_url":"https://api.github.com/users/TotalVerb/orgs","repos_url":"https://api.github.com/users/TotalVerb/repos","events_url":"https://api.github.com/users/TotalVerb/events{/privacy}","received_events_url":"https://api.github.com/users/TotalVerb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/nullable","name":"nullable","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-02T20:45:25Z","updated_at":"2016-10-04T07:26:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/18766","html_url":"https://github.com/JuliaLang/julia/pull/18766","diff_url":"https://github.com/JuliaLang/julia/pull/18766.diff","patch_url":"https://github.com/JuliaLang/julia/pull/18766.patch"},"body":"No other `get` function has these semantics, and the `x[]` is better syntax anyway.\r\n\r\nNote that parallel from\r\n\r\n```julia\r\ndict[key]\r\n```\r\n\r\nto\r\n\r\n```julia\r\nget(dict, key, default)\r\n```\r\n\r\nversus\r\n\r\n```julia\r\nnullable[]\r\n```\r\n\r\nto\r\n\r\n```julia\r\nget(nullable, default)\r\n```"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/251313892","html_url":"https://github.com/JuliaLang/julia/pull/18766#issuecomment-251313892","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/18766","id":251313892,"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},"created_at":"2016-10-04T07:26:23Z","updated_at":"2016-10-04T07:26:23Z","body":"> but perhaps this entire idiom is quite inferior. It would be nice to have Scala-style pattern matching on Nullable, which would have improved type safety and other general benefits. But that's a separate issue.\r\n\r\nhttps://github.com/JuliaLang/julia/issues/15174"}}
{"actor":{"display_login":"nalimilan"}}