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
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: 2007-05-11 (13:15)
From: dmitry grebeniuk <gds-mlsts@m...>
Subject: Re: [Caml-list] Custom operators in the revised syntax
Shalom, Nicolas.

NP> Today it's about custom operators. In the original syntax everyone
NP> knows that's easy to define and use custom operators like ++, -->,
>>>>, +|, =?=, ... and as many as you want.

  As for me, the lack of custom infix operators in revised syntax
is a feature that allows to keep code clean, without any
"=?=" or "<<+".  The code "(func arg1 arg2)" is imho much
more readable than "arg1 op arg2" because: 1. function name
usually says something about the meaning of the function, 2. you
don't need to remember operator's precedence and associativity
to understand the code.

 dmitry                          mailto:gds-mlsts@moldavcable.com