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
Re: Syntax for label, NEW PROPOSAL
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: John Prevost <prevost@m...>
Subject: Re: Syntax for label, NEW PROPOSAL
Damien Doligez <> writes:

> >From: Don Syme <>
> >  - No labels inside the arguments of higher order functions.  This 
> >    will really confuse new users who try not to use labels!
> >    e.g.. no "acc" in the first argument of
> >       val fold_right: fun:('b -> acc:'a -> 'a) -> 'b array -> acc:'a -> 'a
> But that argument doesn't really work because new users who try not
> to use labels will not use label mode.

Actually, that's over-simplifying.  In fact, I would simply turn off
label mode--EXCEPT that I might want to use something like tk, which
has an API I don't think is usable without labels.

So I would either have a mixture of source files, some compiled with
labels on some with off, or all labels.  And even in the files where I
want labels, I'd rather not use them on the standard library, but I
would have to.  :(