First encounter with variable rebinding in pattern matching

To me, Elixir allows rebinding (i.e. the values are immutable) while Erlang does not. Pinning is necessary to suppress the default rebind behaviour.

See also:

3 Likes