Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] CamlP4 Revised syntax comment
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-10-29 (18:12)
From: Gérard_Huet <Gerard.Huet@i...>
Subject: Re: [Caml-list] CamlP4 Revised syntax comment

Le lundi 28 octobre 2002, à 05:56 PM, Alexander V.Voinov a écrit :

> Hi All,
> From: "Kontra, Gergely" <>
> Subject: Re: [Caml-list] CamlP4 Revised syntax comment
> Date: Mon, 28 Oct 2002 09:38:04 +0100 (CET)
>> I really dislikes the do { } notation.
>> My suggestion is to use do end pairs, which is borrowed also from ruby.
>> And if we want more ruby-ish (ada-like?), the matching can be
>> match a with
>> | 0 ->
>> | n ->
>> end
> I second this.
> Alexander

I do not think that design of a programming language (or any reasonably 
scientific activity) can be seriously accomplished by exchanges through a
large mailing list using random criteria of taste and distaste. In other 
there is no "motion" to second, we have no tradition of design by voting.

The revised syntax of Ocaml is certainly not the final satisfactory 
solution, but it is a well thought out experiment in improving the 
syntax of Ocaml along orthogonal principles. Its community may not be as 
large as the wider community using the standard syntax, but it is a 
community of users who appreciate stability,
upward compatibility, and principled discussion.

I personally believe that syntax, and notation in general, is important. 
for guiding intuition consistently with the semantics, important for 
teaching the
language, important for avoiding mistakes such as case capture because 
of poor
bracketing. So it deserves a serious argumentation. Furthermore, it is 
not just
a matter of concrete syntax, it is also a matter of consistent tools for 
the edition and maintenance of programs in a spirit of literate 

Gérard Huet

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: