[Haskell-cafe] Syntax proposal for "reverse apply"/"pipeline apply" (flip ($))
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 at plaimi.net
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
> -----END PGP SIGNATURE-----
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe