[Haskell-cafe] Syntax proposal for "reverse apply"/"pipeline apply" (flip ($))
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.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe