[erlang-questions] Pipe Operator in Erlang?

Volkert volkert@REDACTED
Thu Jul 9 22:05:42 CEST 2015


yes, i see the problems .... may be my question was a bit silly ;-)

Am 09.07.2015 um 19:13 schrieb José Valim:
> I agree with the general feelings of the thread. F# relies on 
> currying. Elixir relies on macros (it is actually closer to the thread 
> operator found in some lisps).
>
> Also F# has most of its standard library expecting the "subject" as 
> last argument (due to currying). Elixir defaults to the first 
> argument. Erlang, for better or worse, has them mixed (see binary and 
> lists modules).
>
> For those reasons I don't think this feature makes much sense in 
> Erlang. It is also hard to have elegant currying when functions are 
> identified by name and arity. I believe Joxa is the only language in 
> the Erlang VM with currying but they dropped the fun name/arity bit 
> (citation needed).
>
> Language features are like a Jenga game, all the pieces need to fit 
> together neatly, otherwise you have a crumbling mess.
>
>
>
> *José Valim*
> www.plataformatec.com.br <http://www.plataformatec.com.br/>
> Skype: jv.ptec
> Founder and Director of R&D
>
> On Thu, Jul 9, 2015 at 5:24 PM, Volkert 
> <volkert@REDACTED 
> <mailto:volkert@REDACTED>> wrote:
>
>     Dear all,
>
>     I really love the Pipe Operator |> in Elixir and F#.
>
>     Are there any plans to have this in Erlang?
>
>     Volkert
>
>
>
>     _______________________________________________
>     erlang-questions mailing list
>     erlang-questions@REDACTED <mailto:erlang-questions@REDACTED>
>     http://erlang.org/mailman/listinfo/erlang-questions
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150709/54aa5103/attachment.htm>


More information about the erlang-questions mailing list