Post
Yep. I never thought that ( .. ) can be equivalent to a do .. end. Which is also why () evaluates to nil.
0 reposts0 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...).
hexdocs.pmKernel.SpecialForms — Elixir v1.19.3