Proposal: IEx hints

I learned lots of languages and don’t remember any with rebinding/pattern matching. I think that they should be described in one tip, for example:

One of Elixir language features is support pattern matching.
Note; pattern matching is not variable assignment.

iex> x = 1
iex> 1 = x
iex> 2 = x # exception
iex> x = 2
iex> 2 = x
iex> [a, b, %{c: c}] = [1, 2, %{c: 3}]
2 Likes