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
Syntax vs Operators
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-08-23 (19:42)
From: Damien Doligez <damien.doligez@i...>
Subject: Re: [Caml-list] Syntax vs Operators
On Aug 23, 2005, at 20:05, Jacques Carette wrote:

> Actually, the whole point of this question is that I want to  
> redefine/override them
> - and I wanted to find out which I could not.  I know I can  
> override + if I want,
> I want to know about the ones like :: which have a pre-defined  
> meaning but can not
> be overridden.

Maybe I'm overlooking something, but I think the ones in the  
"keywords" list
are the ones that you cannot or should not override.

> The point is to see how much of a DSL I can create in Ocaml, using  
> Ocaml syntax,
> by using lots of Functors.  Very much in the spirit of the Lua-ML  
> interpreter in
> fact, except that I want to use Caml syntax rather than having to  
> parse a new
> language.

If it's a DSL that includes OCaml as a sublanguage, I think at some  
point you
will have users who want to use the OCaml features that you are hiding.

-- Damien