Browse thread
Simple idea for making a function infix
-
Keisuke Nakano
- Chris King
-
Till Varoquaux
- Jean-Christophe Filliatre
- skaller
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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. -- Jean-Christophe