Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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...



Does the shorthand lambda belong on this list?

Thanks for all the work!


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: