Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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.

-- 
Jean-Christophe