Skip to content

Commit

Permalink
noteworthy-differences: remove mention of pre-1.0 "change of syntax" (#…
Browse files Browse the repository at this point in the history
…36068)

This mention of how the syntax has changed is not relevant for current newcomers-from-c(++), and it makes Julia look a bit unstable. Also add a reference to array construction manual.
  • Loading branch information
tkluck authored May 29, 2020
1 parent 59a315c commit 7c980c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/src/manual/noteworthy-differences.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ For users coming to Julia from R, these are some noteworthy differences:

* Julia arrays are indexed with square brackets, and can have more than one dimension `A[i,j]`.
This syntax is not just syntactic sugar for a reference to a pointer or address as in C/C++. See
the Julia documentation for the syntax for array construction (it has changed between versions).
[the manual entry about array construction](@ref man-multi-dim-arrays).
* In Julia, indexing of arrays, strings, etc. is 1-based not 0-based.
* Julia arrays are not copied when assigned to another variable. After `A = B`, changing elements of `B` will modify `A`
as well. Updating operators like `+=` do not operate in-place, they are equivalent to `A = A + B`
Expand Down

0 comments on commit 7c980c6

Please sign in to comment.