The Deprecated section of Julia v0.7.0 Release Notes says:
array + scalar,
scalar - array, and so-on
have been deprecated due to inconsistency with linear algebra.
.- for these operations instead.”
I do not find the issue # for this.
Could you point me to there?
Do I remember correctly that this already happened once,
but then it was reverted?
Issue: Deprecate broadcast behaviour of `+` in favour of adding identity matrices · Issue #22880 · JuliaLang/julia · GitHub
Thanks for the pointers.
They contained what I was looking for:
As I commented in the later PR, what changed is that
now we’ve eliminated most of the implicit broadcasting in favor of dot calls, and dot calls have some performance advantages (when they are combined) so it is not merely a matter of spelling.
I am sure that all aspects were considered well,
and decision time is over.
It is only that typing
A.+1 instead of
is not growing on me without a pain.
Unlike Julia 0.5, you now also have to write
exp.(A) for the elementwise functions. See this blog article for why we dropped the implicit elementwise syntax.