3 ms·
Is it a fair comparison? Would it work in Elixir? I have not seen it in Elixir projects as such.
by johnisgood 1y ago
Is it a fair comparison? Would it work in Elixir? I have not seen it in Elixir projects as such.
- Jtsummers 1y agoAdjusting for the actual Elixir functions, yes that would work. That's how Elixir's |> works, it takes the value from the left and passes it as the first argument to function on the right. Which is what the chain of calls in D is doing.
- vips7L 1y agoThanks. I don’t know elixir.
- johnisgood 1y agoI have not yet seen such long chains in Elixir. Could you show me a project where it is used? "map(a => aidup)" caught me by surprise, too. Would Elixir do such a thing?