Hello Aleff, Proposals that enhance the pipe operator such as this one has been sent multiple times in the past. I recommend you to read the archives and see why they were rejected. If previous proposals were not exactly as this one, the reasons for rejection likely stand.
*José Valim* www.plataformatec.com.br Skype: jv.ptec Founder and Director of R&D On Mon, Aug 15, 2016 at 5:51 PM, Aleff Souza <[email protected]> wrote: > We all know that the pipe operator is very powerful and elegant, but what > I think that is annoying sometimes is that it ONLY passes the result to the > FIRST parameter of the next expression. So, I think it'd be nice to have > some way where I could choose which parameter the left result would be > passed. > > In Example, given a function foo/3: > > "Elixir" > |> String.upcase > |> foo(param1, _, param3) > > Where '_' is where the result from the previous expression would be passed > on. > > -- > 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/b07c635a-0155-44f2-8fb3- > b996f4d33fc7%40googlegroups.com > <https://groups.google.com/d/msgid/elixir-lang-core/b07c635a-0155-44f2-8fb3-b996f4d33fc7%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAGnRm4J394VQ4TYn7p173gyYdXnEB4hE%2BVweFOXAZucL5ZTYgA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
