What is a “symbol” in Julia?

Symbols in Julia are the same as in Lisp, Scheme or Ruby. However, the answers to those related questions are not really satisfactory, in my opinion. If you read those answers, it seems that the reason a symbol is different than a string is that strings are mutable while symbols are immutable, and symbols are … Read more

Creating copies in Julia with = operator

The confusion stems from this: assignment and mutation are not the same thing. Assignment. Assignment looks like x = … – what’s left of the = is an identifier, i.e. a variable name. Assignment changes which object the variable x refers to (this is called a variable binding). It does not mutate any objects at … Read more