{"action":"opened","issue":{"url":"https://api.github.com/repos/dmlc/MXNet.jl/issues/109","repository_url":"https://api.github.com/repos/dmlc/MXNet.jl","labels_url":"https://api.github.com/repos/dmlc/MXNet.jl/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/dmlc/MXNet.jl/issues/109/comments","events_url":"https://api.github.com/repos/dmlc/MXNet.jl/issues/109/events","html_url":"https://github.com/dmlc/MXNet.jl/issues/109","id":166837803,"number":109,"title":"Changed meaning of .+= in Julia 0.5","user":{"login":"stevengj","id":2913679,"avatar_url":"https://avatars.githubusercontent.com/u/2913679?v=3","gravatar_id":"","url":"https://api.github.com/users/stevengj","html_url":"https://github.com/stevengj","followers_url":"https://api.github.com/users/stevengj/followers","following_url":"https://api.github.com/users/stevengj/following{/other_user}","gists_url":"https://api.github.com/users/stevengj/gists{/gist_id}","starred_url":"https://api.github.com/users/stevengj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevengj/subscriptions","organizations_url":"https://api.github.com/users/stevengj/orgs","repos_url":"https://api.github.com/users/stevengj/repos","events_url":"https://api.github.com/users/stevengj/events{/privacy}","received_events_url":"https://api.github.com/users/stevengj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-21T14:46:54Z","updated_at":"2016-07-21T14:46:54Z","closed_at":null,"body":"Your code uses `x .+= y`, so you should know that in Julia 0.5 this has changed meaning to be equivalent to `broadcast!(identity, x, x .+ y)`, so that it mutates the `x` array (see JuliaLang/julia#17510 … in Julia 0.6 the whole operation will occur in-place without temporaries).  So `.+` should only be used if the left-hand side is a mutable array, and you don't mind mutating it.\r\n\r\nAt first glance, this looks like it is okay for you, because you use it in cases where it looks like yhou want to work in-place anyway.  But if it were a problem you could always change it to `+=`."}}
{"actor":{"display_login":"stevengj"}}