The block -> keyword list behavior is well-documented (for example: http://elixir-lang.org/getting-started/case-cond-and-if.html#do-end-blocks). It is also what facilitates the short function definition syntax:
def square(x), do: x * x
is equivalent to
def square(x) do x * x end
Uh oh. I smell WAT!
The block -> keyword list behavior is well-documented (for example: http://elixir-lang.org/getting-started/case-cond-and-if.html#do-end-blocks). It is also what facilitates the short function definition syntax:
is equivalent to
Uh oh. I smell WAT!