Browse thread
Re: [Caml-list] Haskell features in O'Caml
- Arturo Borquez
[
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: | -- (:) |
| From: | Arturo Borquez <aborquez@a...> |
| Subject: | Re: [Caml-list] Haskell features in O'Caml |
On Sun, 23 September 2001, Florian Hars wrote: ..... > > > Also if a function is named using operator symbols it can be used as > > > an operator, e.g if &&& is defined as: > > Ocaml: > > # let ( &&& ) x y = if x >= y then x else y;; > > But you cannot change the fixity, it is defined by the first char of > the operator, ie. ++, +*/- and +@%&!- all have the same precedence and > associativity as +. Yes, but default associativity can be overriden using proper parens, and produces more readable code. Best regards Arturo Find the best deals on the web at AltaVista Shopping! http://www.shopping.altavista.com ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr