You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to pickup the Julia 1.0 syntax differences. One major gotcha for me was the removal of the convenience scalar +/- array functions in favor of the explicit .+ forms. This surprised me and took me a bit to figure out. It's noted in the NEWS.md for the 0.7 release it's not in the 1.0 NEWS.md nor in the early sections of the Julia manual.
Would it be possible to add a warning or a helpful compiler message in the repl along the lines "you might try .+"? Many people picking up Julia will be coming from Python or Matlab where I believe the default is to broadcast addition/sum. It's a small matter, but if in the first 5 minutes someone is trying out Julia and can't figure out how to add 4 to their array it could be very frustrating.
Alternately, ensuring it's clearly stated the first time array operations are introduced in the manual might work just as well.
I'm trying to pickup the Julia 1.0 syntax differences. One major gotcha for me was the removal of the convenience
scalar +/- array
functions in favor of the explicit.+
forms. This surprised me and took me a bit to figure out. It's noted in the NEWS.md for the 0.7 release it's not in the 1.0 NEWS.md nor in the early sections of the Julia manual.Would it be possible to add a warning or a helpful compiler message in the repl along the lines "you might try .+"? Many people picking up Julia will be coming from Python or Matlab where I believe the default is to broadcast addition/sum. It's a small matter, but if in the first 5 minutes someone is trying out Julia and can't figure out how to add
4
to their array it could be very frustrating.Alternately, ensuring it's clearly stated the first time array operations are introduced in the manual might work just as well.
The text was updated successfully, but these errors were encountered: