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: -- (:)
From: Alexander V.Voinov <avv@q...>
Subject: Re: [Caml-list] CamlP4 Revised syntax comment

From: Gérard Huet <>
Subject: Re: [Caml-list] CamlP4 Revised syntax comment
Date: Tue, 29 Oct 2002 19:15:02 +0100

> >> match a with
> >> | 0 ->
> >> | n ->
> >> end
> >
> > I second this.
> >
> > Alexander
> >
> Frankly,
> I do not think that design of a programming language (or any reasonably 
> complex
> scientific activity) can be seriously accomplished by exchanges through a
> large mailing list using random criteria of taste and distaste. 

I agree completely. Here I only meant that a closing 'parenthesis' for
the match construction is desired. I don't use revised syntax and don't know it,
but in the standard syntax you have to use parentheses over the entire 'match...'
to resolve ambiguity.

Of course a masterpiece cannot be created by a referendum. :-)

> I personally believe that syntax, and notation in general, is important. 

Me too. BTW quite recently I made a presentation on FP in my company,
and one slide just showed two equivalent programs in Python and OCaml
side by side. This slide was crucial in the overall receiption of the
presentation.  My colleagues got a feeling that FP is not _that_ weird
(as one would infer from the previous slides ;-) after all. (Here in
biotech we use Python very intensively.)

> Important
> for guiding intuition consistently with the semantics, 

Especially when you promote the language among skillful users of some
other language be it C or Ada or Python.


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