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 (14:47)
From: brogoff <brogoff@s...>
Subject: Re: [Caml-list] Custom operators in the revised syntax
On Fri, 11 May 2007, Nicolas Pouillard wrote:
> This seems reasonable, but that's more a guideline. The feature can be
> present for that wants it. Moreover Camlp4 is about changing the
> syntax, so one can buy the revised syntax without the fact of patching
> syntaxes but features are here.

Any chance we could have something like in Haskell where you easily
define new infix names?

Speaking of Haskell and Revised, one of the things I like about Revised
over Ocaml syntax (that lots of people dislike it seems) is the
additional bracketing. Most of the syntactical annoyances I have with
Ocaml are usually connected with bracketing. Someone once quipped that
all problems with ML syntax can be fixed with some parentheses, and I
have to admit that quip makes sense. So I prefer Revised as an
alternative syntax over Python/Haskell influenced approaches.

-- Brian