5 ms·
Ampersands are the builtin symbol for point-free evaluation in Elixir. If you forget what it means in a month, you will probably have other problems than this
by shakow 4y ago
Ampersands are the builtin symbol for point-free evaluation in Elixir.
If you forget what it means in a month, you will probably have other problems than this single snippet.
- pmontra 4y agoYou never know in advance who will work on code in a large project, how expert in that language and under which time pressure. I prefer to stick to a common ground between major languages that lets (say) someone that knows only JavaScript at least read the code and understand what it does. If it means that I have to write a few more lines or type more characters in variable and function names, I do it. I never appreciate where languages and developers want to do smart things. Boring and plain is much safer.
- shakow 4y agoIf you find yourself in such conditions that JS developers unable to google ‶elixir ampersand″ are the ones reviewing your code often enough for it to be a constraint while developing, your company has much deeper problems far up the command chain.
- pmontra 4y agoMy customers are small companies. Elixir is their choice.