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

Ben Foppa benjamin.foppa at gmail.com
Fri Apr 18 15:13:56 UTC 2014


($$) conflicts with conduit :)


On Fri, Apr 18, 2014 at 6:21 AM, Alexander Berntsen <alexander at plaimi.net>wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> On 18/04/14 12:09, Malcolm Wallace wrote:
> > I would like to strongly oppose the theft of the (&) operator from
> > general use.  The proposal to put it in Data.Function, such that
> > you need to know you are importing it, is OK, but it should never
> > go into the Prelude.
> It is unlikely to ever go into Prelude as '&'. The current patch only
> puts it in Data.Function.
>
> I still maintain that '|>' and '<|' are preferable, and could go in
> prelude regardless of Data.Sequence.
>
> '&' represents conjunction in my head, and furthermore it does not
> obviously relate to '$'. To remedy my concerns, I think David
> Menendez's suggested '$$' should be strongly considered. This also
> remedies your concern of occupying all the one-character namespace,
> which makes it a stronger candidate for prelude than '&'.
>
> And I do think that we should have a reverse application operator in
> Prelude. Sitting in Data.Function it is only barely more convenient
> than defining it yourself.
> - --
> Alexander
> alexander at plaimi.net
> https://secure.plaimi.net/~alexander
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iF4EAREIAAYFAlNQ/L0ACgkQRtClrXBQc7VeRAEAsM1m7l/HYd1huc1UaLf/6S/m
> 2Da8dzFysp6ruQV4aa4BAIyBb/Ekc3Ohn+OIZRdR+FCQ+PQeaR7X+r7SZfFsF58u
> =yApD
> -----END PGP SIGNATURE-----
> _______________________________________________
> 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/20140418/c3fffc96/attachment.html>


More information about the Haskell-Cafe mailing list