Gotchas: Difference between revisions
m
→{{header|Julia}}
Line 51:
<pre>
const a = [1, 2
push(a, 4); a[2] = 0; # No error, and `a` is now [1, 0, 4]
a = [0, 0] # compiler error triggered by this, since we are assigning `a` itself not its mutable contents
|