Flipped function application

Dan Doel dan.doel
Thu Oct 10 14:13:37 UTC 2013


On Thu, Oct 10, 2013 at 4:46 AM, Simon Peyton-Jones
<simonpj at microsoft.com> wrote:
> F# uses (|>).   Maybe (#) is good.    To me (&) looks too commutative
> because it?s usually used for conjunction.

I mentioned this on the core list, but I'll mention it here, too:

I don't like (|>), because once you have this operator, you also might
as well have the functorial version. We have ($) and (<$>), and lens
has (&) and (<&>). The latter is useful for functorial 'for blocks':

    myFunctorValue <&> \x ->
      ...complex expression...

I actually think it's (significantly) more useful than (&). But, I
think (<|>>) is a pretty awful name for it, so I'd prefer a name that
makes both palatable.

-- Dan




More information about the Libraries mailing list