Thanks Stefan! That really helps.
I don't know if you guys have such a thing as a language specification
document (I'm guessing the language is too much in evolution at present for
that to be the case), but if you do I'd be happy to work towards porting
bits of it to the main documentation.
See:
http://julia.readthedocs.org/en/latest/manual/faq/#i-passed-an-argument-x-to-a-function-modified-it-inside-that-function-but-on-the-outside-the-variable-x-is-still-unchanged-why
http://julia.readthedocs.org/en/latest/manual/faq/#why-does-x-y-allocate-memory-when-x-and-y-are-arrays
On Tue,
Please DO open a pull request with suggested edits to the documentation!
Thanks,
Jiahao Chen
Staff Research Scientist
MIT Computer Science and Artificial Intelligence Laboratory
On Tue, Feb 17, 2015 at 11:59 AM, David Higgins daithiohuig...@gmail.com
wrote:
Thanks Stefan,
I did actually see
The confusion stems from this: *assignment and mutation are not the same
thing.*
*Assignment. *Assignment looks like `x = ...` – what's left of the `=` is a
variable name.
Assignment changes which object the variable `x` refers to (this is called
a variable binding). It doesn't mutate any