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 (18:25)
From: brogoff <brogoff@s...>
Subject: Re: [Caml-list] Custom operators in the revised syntax
On Fri, 11 May 2007, Nicolas Pouillard wrote:
> On 5/11/07, brogoff <brogoff@speakeasy.net> wrote:
> > Any chance we could have something like in Haskell where you easily
> > define new infix names?
> Something general like: x `foo` y ?


> In Haskell you can put brackets and semi-colons if you dislike
> significant layout.

Yes, I know. I don't dislike significant layout, I'm just pointing out
that the (relatively minor) issues I have with OCaml syntax, like
try/with or if/then capturing more than I expect, are fixed in Revised,
by using more brackets.

-- Brian