{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/17053","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/17053/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/17053/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/17053/events","html_url":"https://github.com/JuliaLang/julia/pull/17053","id":161490852,"number":17053,"title":"WIP: Add default IsScalar trait","user":{"login":"pabloferz","id":8410335,"avatar_url":"https://avatars.githubusercontent.com/u/8410335?v=3","gravatar_id":"","url":"https://api.github.com/users/pabloferz","html_url":"https://github.com/pabloferz","followers_url":"https://api.github.com/users/pabloferz/followers","following_url":"https://api.github.com/users/pabloferz/following{/other_user}","gists_url":"https://api.github.com/users/pabloferz/gists{/gist_id}","starred_url":"https://api.github.com/users/pabloferz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabloferz/subscriptions","organizations_url":"https://api.github.com/users/pabloferz/orgs","repos_url":"https://api.github.com/users/pabloferz/repos","events_url":"https://api.github.com/users/pabloferz/events{/privacy}","received_events_url":"https://api.github.com/users/pabloferz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/needs-docs","name":"needs-docs","color":"d4c5f9"},{"url":"https://api.github.com/repos/JuliaLang/julia/labels/needs-tests","name":"needs-tests","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-06-21T17:08:22Z","updated_at":"2016-07-20T19:32:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/17053","html_url":"https://github.com/JuliaLang/julia/pull/17053","diff_url":"https://github.com/JuliaLang/julia/pull/17053.diff","patch_url":"https://github.com/JuliaLang/julia/pull/17053.patch"},"body":"While struggling with https://github.com/JuliaLang/julia/pull/16986, I figured that an `IsScalar` trait (as opposed to `HasLength` by default) would help to handle the different scenarios that broadcast might encounter."},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/234056799","html_url":"https://github.com/JuliaLang/julia/pull/17053#issuecomment-234056799","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/17053","id":234056799,"user":{"login":"JeffBezanson","id":744556,"avatar_url":"https://avatars.githubusercontent.com/u/744556?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffBezanson","html_url":"https://github.com/JeffBezanson","followers_url":"https://api.github.com/users/JeffBezanson/followers","following_url":"https://api.github.com/users/JeffBezanson/following{/other_user}","gists_url":"https://api.github.com/users/JeffBezanson/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffBezanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffBezanson/subscriptions","organizations_url":"https://api.github.com/users/JeffBezanson/orgs","repos_url":"https://api.github.com/users/JeffBezanson/repos","events_url":"https://api.github.com/users/JeffBezanson/events{/privacy}","received_events_url":"https://api.github.com/users/JeffBezanson/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T19:32:29Z","updated_at":"2016-07-20T19:32:29Z","body":"I don't think it makes sense to say that an iterator is a scalar. \"Scalar\" has proven very difficult to pin down, the standard example being Strings, which are iterable but also often occur as array elements. The best approach is to use something like `broadcast(s->\"pfx\"*s, strings)` instead of expecting `broadcast(*, \"pfx\", strings)` to work."}}
{"actor":{"display_login":"JeffBezanson"}}