Version française
Home     About     Download     Resources     Contact us    
Browse thread
RE: [Caml-list] Please help a newbie
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Brian Rogoff <bpr@b...>
Subject: RE: [Caml-list] Please help a newbie
On Thu, 2 Aug 2001, Dave Berry wrote:
> For the language designers on the list:  This is an example of why
> curried notation is a bad idea.  If the function were written using
> tuples, Johann would have been less likely to make this mistake, and if
> he had, the compiler could have given a message that was easier to
> understand.

This could also be construed as an instance of "function" being a bad
idea, or at least, a little confusing to beginners. It's confusing because 
it takes an implicit argument. If match had been used, I don't think 
this would have happened. In the Revised syntax of CamlP4 function is 
omitted (for other reasons I think). While I stumbled a bit at first with
function, I use it a bit now. 

-- Brian


-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr