{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaStats/NullableArrays.jl/issues/158","repository_url":"https://api.github.com/repos/JuliaStats/NullableArrays.jl","labels_url":"https://api.github.com/repos/JuliaStats/NullableArrays.jl/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/JuliaStats/NullableArrays.jl/issues/158/comments","events_url":"https://api.github.com/repos/JuliaStats/NullableArrays.jl/issues/158/events","html_url":"https://github.com/JuliaStats/NullableArrays.jl/pull/158","id":181247255,"number":158,"title":"[RFC] Fix [map]reduce with no non-null and single non-null element","user":{"login":"alyst","id":348591,"avatar_url":"https://avatars.githubusercontent.com/u/348591?v=3","gravatar_id":"","url":"https://api.github.com/users/alyst","html_url":"https://github.com/alyst","followers_url":"https://api.github.com/users/alyst/followers","following_url":"https://api.github.com/users/alyst/following{/other_user}","gists_url":"https://api.github.com/users/alyst/gists{/gist_id}","starred_url":"https://api.github.com/users/alyst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alyst/subscriptions","organizations_url":"https://api.github.com/users/alyst/orgs","repos_url":"https://api.github.com/users/alyst/repos","events_url":"https://api.github.com/users/alyst/events{/privacy}","received_events_url":"https://api.github.com/users/alyst/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-10-05T19:43:42Z","updated_at":"2016-10-07T08:48:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JuliaStats/NullableArrays.jl/pulls/158","html_url":"https://github.com/JuliaStats/NullableArrays.jl/pull/158","diff_url":"https://github.com/JuliaStats/NullableArrays.jl/pull/158.diff","patch_url":"https://github.com/JuliaStats/NullableArrays.jl/pull/158.patch"},"body":"Also test `[map]reduce()` with N=2 to expose this corner case."},"comment":{"url":"https://api.github.com/repos/JuliaStats/NullableArrays.jl/issues/comments/252186053","html_url":"https://github.com/JuliaStats/NullableArrays.jl/pull/158#issuecomment-252186053","issue_url":"https://api.github.com/repos/JuliaStats/NullableArrays.jl/issues/158","id":252186053,"user":{"login":"alyst","id":348591,"avatar_url":"https://avatars.githubusercontent.com/u/348591?v=3","gravatar_id":"","url":"https://api.github.com/users/alyst","html_url":"https://github.com/alyst","followers_url":"https://api.github.com/users/alyst/followers","following_url":"https://api.github.com/users/alyst/following{/other_user}","gists_url":"https://api.github.com/users/alyst/gists{/gist_id}","starred_url":"https://api.github.com/users/alyst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alyst/subscriptions","organizations_url":"https://api.github.com/users/alyst/orgs","repos_url":"https://api.github.com/users/alyst/repos","events_url":"https://api.github.com/users/alyst/events{/privacy}","received_events_url":"https://api.github.com/users/alyst/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T08:48:30Z","updated_at":"2016-10-07T08:48:30Z","body":"@nalimilan I suppose one of the `Nullable` roles is to silence exceptions like this. Otherwise one always has to check for such corner cases in advance, instead of doing simple post-hoc `isnull()`. I think it could be fixed by defining the default `mr_empty()`\r\n```julia\r\nBase.mr_empty{T}(f, op, Nullable{T}) = Nullable{T}()\r\n```\r\n"}}
{"actor":{"display_login":"alyst"}}