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
Simple idea for making a function infix
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-11-13 (17:45)
From: Jean-Christophe Filliatre <filliatr@l...>
Subject: Re: [Caml-list] Simple idea for making a function infix

Till Varoquaux writes:
 > I don't really understand the point of the */ operator i your
 > definition. 

I guess it is only aesthetic.

 > > We use the following two infix operators.
 > >    let ( /* ) x y = y x
 > >
 > It's fuy ecause I've cosiderig the same problem recetly ad
 > came dow to this approach ( I'm redefining(@)... oe c )

There is actually an instance of this infix operator in the ocaml
sources (in asmcomp/asmgen.ml for instance). It is used to compose the
various passes of the compiler.