Re:Twenty Years of Open Source Erlang: A Retrospective from ...
by josevalim on Tuesday December 11, 2018 @11:40AM
(#18656517)
> 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-su...
Re:Twenty Years of Open Source Erlang: A Retrospective from ...
by dnautics on Tuesday December 11, 2018 @12:05PM
(#18656728)
Does the shorthand lambda belong on this list?
Thanks for all the work!
Re:Twenty Years of Open Source Erlang: A Retrospective from ...
by josevalim on Tuesday December 11, 2018 @12:43PM
(#18657065)
Oh, 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.
I'm grateful that Elixir is putting Erlang under the spotlights. That it is doing a lot to conveying all the Erlang/OTP concepts and practices. But each time I use it - and I know I may be the odd duck based on slack, blog posts, etc - I feel like the syntax is so complex, with 4 different manners to write the same thing. And I'm not talking about "ways to do things", but literally syntactic ways to do the same thing.