Flipped function application
Andreas Abel
andreas.abel
Thu Oct 10 07:25:20 UTC 2013
As in the last discussion, I am in favor of adding a flipped function
application operator. My pick would be (|>), but I'd also support (&).
Let's not reject this proposal this time, otherwise we'll have it back
in a couple of months...
My take is that if a feature is repeatedly asked for (independently),
it can't be that bad and should be added...
Cheers,
Andreas
On 2013-10-10 15:29, Wvv wrote:
> Thank you very much!
>
> We could divide negative arguments :
>
> 1) Aesthetic ugliness.
>
> Flipped function application is a part of Haskell 98. And it is not
> more
> ugly, then eta-reduction or currying.
> I think Dynamic is much more ugly, but it is a part of Platform and
> it even
> develops, and this is nice!
> If (#) is so ugly, no one order to use it.
>
> 2) Flipped function application is so powerful, that everyone use it
> instead
> of ($) and (.).
>
> If we are looking at code, who use OCaml-Batteries code, no, it is
> still
> OCaml, not Haskell.
>
> 3) At least newcomers use (#) instead of ($) and (.).
>
> First, if we "hide" it in Data.Functions, then it is not so easy to
> find it.
> Second, in any case, if newcomers use it and see, how Haskell is
> easy,
> because Haskell code look like his/her favorite Java/C++/Ruby/... - I
> think
> it is a big advantage, not a disadvantage at all.
>
> 4) Code with Flipped function application looks like OOP
>
> "class" and "return" also looks like OOP and imperative programs.
> If someone like OOP so much, that it use (#) and Haskell instead of
> programming his favorite OOP language - this is nice!
>
> Am I miss something?
>
>
> Henning Thielemann wrote
>> Please read the last discussion on the topic before repeating it:
>>
>> http://www.haskell.org/pipermail/libraries/2012-November/018565.html
>> _______________________________________________
>> Libraries mailing list
>
>> Libraries@
>
>> http://www.haskell.org/mailman/listinfo/libraries
>
>
>
>
>
> --
> View this message in context:
>
> http://haskell.1045720.n5.nabble.com/Flipped-function-application-tp5738131p5738167.html
> Sent from the Haskell - Libraries mailing list archive at Nabble.com.
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
--
Andreas Abel <>< Du bist der geliebte Mensch.
Theoretical Computer Science, University of Munich
http://www.tcs.informatik.uni-muenchen.de/~abel/
More information about the Libraries
mailing list