> On Aug 12, 2019, at 09:32, OvermindDL1 <[email protected]> wrote:
> 
> |> Regex.scan(~r/foo/, _)

I like this syntax better than my own suggestion:

  |2> Regex.scan(~r/foo/) 

because it doesn't mess with the `|>` syntax or require the reader to
count positions in the argument list.

However, I'm a bit concerned about adding new semantics to `_`.  Its
current meaning tends to be "some arbitrary value", but the proposal
would add an alternate meaning of "the current pipeline value".  Is
this likely to be a problem?

-r


-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/28115154-AA8E-4472-B351-CC6349C1F626%40gmail.com.

Reply via email to