[erlang-questions] Pipe Operator in Erlang?

Dmitry Belyaev be.dmitry@REDACTED
Fri Jul 10 12:07:30 CEST 2015

That is already done in erlando:

Best wishes,
Dmitry Belyaev

On 10 July 2015 6:48:57 PM AEST, Jesper Louis Andersen <jesper.louis.andersen@REDACTED> wrote:
>On Thu, Jul 9, 2015 at 5:24 PM, Volkert
>> Are there any plans to have this in Erlang?
>As already noted, the operator |> is hard to add to the language
>because it
>doesn't work that well.
>I'd much rather see a succinct notion for a monadic val/bind where I
>set a monad
>M = #monad { val = Val, bind = Bind },
>with M do
>    X <- foo(),
>    Y <- bar(X),
>    return(Y)
>and run inside the monad[0]. Since the language is dynamically typed,
>would have to supply the monad you are building over, but you would be
>to do a lot of the things people request with the |> operator, as it is
>special case.
>[0] I've given this very little syntactical thought at the moment, but
>hopefully you get the idea.
>erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150710/9cde8d05/attachment.htm>

More information about the erlang-questions mailing list