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

Alexander Berntsen alexander at plaimi.net
Thu Apr 17 13:05:56 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 17/04/14 14:58, Alexey Muranov wrote:
> Then i think symmetric aliases for '(.)' and 'flip (.)' would also
> be needed.
F# solved this elegantly with '>>' and '<<', but these are already
used in Haskell. But I see these as separate issues, and I use 'flip
($)' a lot more often than 'flip (.)'.

> * a left-associative and a right-associative operator symbols
> cannot have the same precedence, so '|>' and '<|' would need to
> have different precedence.
Why? In the languages I have used '|>' and '<|', they have the same
precedence.
- -- 
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/

iF4EAREIAAYFAlNP0bQACgkQRtClrXBQc7XzEQD/XR5vIrDLR/zWeqKA68D8mbzM
6wgeGeFipqC7QSeWdiYBAJBhgVHqfo8JghewXweF5f93QnrcdLF/khIFuJGUA+Rq
=JtCP
-----END PGP SIGNATURE-----


More information about the Haskell-Cafe mailing list