Remix.run Logo
johnisgood a day ago

Is it a fair comparison? Would it work in Elixir? I have not seen it in Elixir projects as such.

Jtsummers a day ago | parent [-]

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

johnisgood 9 hours ago | parent | next [-]

I 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?

vips7L 14 hours ago | parent | prev [-]

Thanks. I don’t know elixir.