This is how it works right now. a |> foo(b, ...)
will work, a |> foo(fn x -> bar(x, ...) end)
will not. However that has another cases when it will not work, for example a |> foo(a: ...)
will not work as expected.
The operator needs to be one of the “elixir supported” operators right?
I think that $
would feel nice, but sadly it’s not on that list
1 Like
$
is unary operator, which mean that it need to be used with something on the right. And it already has a meaning (returns codepoint of the given character).
isn’t ?
the operator to return a character codepoint?
Ahhh, yeah, in Erlang it is $
, sorry. I need to check, as if $
isn’t reserved, then it should be valid name (like in JS), so it could work.