{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/14252","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/14252/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/14252/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/14252/events","html_url":"https://github.com/JuliaLang/julia/issues/14252","id":120220392,"number":14252,"title":"consistent eltypes for all scalar+scalar, scalar+array, array+array ops","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/intro%20issue","name":"intro issue","color":"0052cc"},{"url":"https://api.github.com/repos/JuliaLang/julia/labels/up%20for%20grabs","name":"up for grabs","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-12-03T16:56:39Z","updated_at":"2016-03-01T21:23:26Z","closed_at":null,"body":"See discussion here: https://groups.google.com/forum/#!topic/julia-users/hA0FLKqYEOs. We've already brought many scalar+scalar operations in line with the array+array behaviors; we should probably take this all the way so that these behaviors are always consistent."},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/190911349","html_url":"https://github.com/JuliaLang/julia/issues/14252#issuecomment-190911349","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/14252","id":190911349,"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},"created_at":"2016-03-01T21:23:26Z","updated_at":"2016-03-01T21:23:26Z","body":"The reasoning for the current behavior is that `Int` can represent all possible values of `Int8 + UInt8` whereas `UInt` cannot. Neither `Int` nor `UInt` can represent all possible values of `Int + UInt`, so neither choice is a clear winner, but the choosing `Int`, as you point out, would have the advantage of making the result type more consistent."}}