English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Having '<<', why to use '|>' ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-09-21 (20:57)
From: Harrison, John R <john.r.harrison@i...>
Subject: RE: [Caml-list] Having '<<', why to use '|>' ?
Another possibility: I've used "f ** g" for function composition of "f"
and "g"

in some of my code. It seems quite intuitive to me, a sort of

operation in the "monoid" of functions. Maybe people accustomed to using

"**" for the power function will find it weird, though.





From: caml-list-bounces@yquem.inria.fr
[mailto:caml-list-bounces@yquem.inria.fr] On Behalf Of Ashish Agarwal
Sent: Thursday, September 20, 2007 6:42 AM
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Having '<<', why to use '|>' ?


>   It would be useful that experimented OCaml people suggest a
replacement for the heavily used composition operator ( << ) that is now
reserved for camlp4...

After reading all your posts and all previous posts I could find, I've
started using (<--) and (-->), but I also wish there was an agreed upon
notation for this. I have no confidence that my choices are good.