{"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":13,"created_at":"2016-10-05T19:43:42Z","updated_at":"2016-10-07T13: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/252256693","html_url":"https://github.com/JuliaStats/NullableArrays.jl/pull/158#issuecomment-252256693","issue_url":"https://api.github.com/repos/JuliaStats/NullableArrays.jl/issues/158","id":252256693,"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-07T13:48:30Z","updated_at":"2016-10-07T13:48:30Z","body":"Funny, it's been added two days ago in master. So I guess we need to use the less pretty form for now. Would be nice to have a `VERSION` branch so that we can easily clean it up later.\r\n\r\nThe issue of reductions on empty collections is hardly new. See the links at:\r\nhttps://github.com/JuliaLang/julia/issues/18073#issuecomment-240501236\r\n\r\nThough it might not have been discussed again since the introduction of `Base.return_type`. You could try filing an issue in Julia to get some thoughts.\r\n\r\nAs regard the ` sum(Nullable{Int}[])` failure, maybe we'll have to define `zero` and `one` for `Nullable`, as they are quite basic functions (just like operators). Doesn't sound great, but lifting cannot help us here...\r\n"}}
{"actor":{"display_login":"nalimilan"}}