Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Custom operators in the revised syntax
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: skaller <skaller@u...>
Subject: Re: [Caml-list] Custom operators in the revised syntax
On Fri, 2007-05-11 at 16:15 +0200, Loup Vaillant wrote:
> 2007/5/11, dmitry grebeniuk <>:

> I tend to agree when one says custom operators are evil. However, when
> the default syntax uses operators, the custom ones are a net win : a
> wise programmer will use their semantic load carefully (big nums, for
> example), and sparsely, so the code is more readable. 

In Ocaml, there's no overloading: custom operators have 
big advantages for things like int32, int64, bignums, matrices etc,
where other languages can simply use overloading.

John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: