Referencing local variable before assignment results in unexpected behavior

Sure, but I would imagine most people using Julia do not come from a functional programming background and have never heard of lisp.

It is not the same as mutable structures because it interferes with scoping issues (is assigning to a variable creating a new variable or is it assigning to a previously-defined variable?), and scoping issues are notoriously confusing, as the OP shows.

3 Likes