[Haskell-cafe] Syntax proposal for "reverse apply"/"pipeline apply" (flip ($))

Edward Kmett ekmett at gmail.com
Thu Apr 17 20:24:10 UTC 2014


* (|) is already stolen for syntax, so the pairing, while a powerful
mnemonic, can't be used at all here.

* (#) collides with the use of (#) in MagicHash, so you get uncomfortable
cases where you need to throw in a space.

* (&) can be read off as "and then". (#) has no such obvious reading and is
just more line noise someone has to learn.



On Thu, Apr 17, 2014 at 4:02 PM, Alexey Muranov <alexey.muranov at gmail.com>wrote:

> On 17 avr. 2014, at 21:20, Edward Kmett <ekmett at gmail.com> wrote:
>
> Consensus was achieved to add it as an infixl 1 & operator to
> Data.Function, but not to Prelude,so we just need to put in the patch and
> you'll see it in GHC 7.10.
>
>
> Why '&' and not '#', for example?  I have an empression that '&' often
> comes in pair with '|' for Boolean operations.
>
> Alexey.
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140417/d74d5b16/attachment.html>


More information about the Haskell-Cafe mailing list