3 ms·
> literally syntactic ways to do the same thing. Yup! They are not that many though (6 rules) and they are all documented here: https://hexdocs.pm/elixir/synta
by josevalim 8y ago
> literally syntactic ways to do the same thing.
Yup! They are not that many though (6 rules) and they are all documented here: https://hexdocs.pm/elixir/syntax-reference.html#syntactic-sugar https://hexdocs.pm/elixir/syntax-reference.html#syntactic-su...
- dnautics 8y agoDoes the shorthand lambda belong on this list? Thanks for all the work!
- josevalim 8y agoOh, that's a very good question! It doesn't because the list linked above is about syntactical equivalence and the shorthand `&` has its own AST. But now you made me wonder if we should add it to the list anyway (with a caveat) as it would make the list more complete.