I don't know who needs to hear this, but this works in #ElixirLang (new line after :foo is key): if true, do: (:foo :bar) Can you guess what it returns?
0 reposts4 likes
I don't know who needs to hear this, but this works in #ElixirLang (new line after :foo is key): if true, do: (:foo :bar) Can you guess what it returns?
0 reposts4 likes
That is not 100% correct. `()` and `(1; 2)` (`;` can be replaced by newline there) is equivalent to "meta node" in AST called `__block__` (which is documented in `Kernel.SpecialForms` - hexdocs.pm/elixir/Kerne...).