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
How to raise_with_arg() a tuple?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-07-08 (16:25)
From: Kenneth Knowles <kknowles@s...>
Subject: Re: [Caml-list] How to raise_with_arg() a tuple?
On Fri, Jul 08, 2005 at 05:55:38PM +0200, Thomas Fischbacher wrote:
> Just as a further question, not to be meant as a suggestion or wishlist 
> item: would it be conceivable that, at some point in the future, all the 
> ocaml tools that operate on .ml files could accept different 
> official "syntax variants" (say, the present one and a cleaned up syntax 
> to be defined in the future), and dispatch between parsers via some 
> command line argument or argv[0]? So that minor issues with the syntax 
> could be repaired, should they turn out to be a problem.

This exists, and is called camlp4.  I'm not sure which, if any, of the tools
that operate on .ml files doesn't "support" it via easy command line flags.

There is even a revised syntax shipped with camlp4 which has curried variant
constructors like Haskell.  Unfortunately, there's a lot of stuff in there I
disagree with, like extra bracketing of many constructs.

Here it is:


Forgive me if you already know of this and I misinterpreted your question.
- Kenn