From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA20388; Thu, 2 Aug 2001 18:08:37 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA20383 for ; Thu, 2 Aug 2001 18:08:36 +0200 (MET DST) Received: from shell5.ba.best.com (shell5.ba.best.com [206.184.139.136]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f72G8ZX27772 for ; Thu, 2 Aug 2001 18:08:35 +0200 (MET DST) Received: from localhost (bpr@localhost) by shell5.ba.best.com (8.9.3/8.9.2/best.sh) with ESMTP id JAA27299; Thu, 2 Aug 2001 09:08:29 -0700 (PDT) Date: Thu, 2 Aug 2001 09:08:29 -0700 (PDT) From: Brian Rogoff To: Dave Berry cc: ocaml mailing list Subject: RE: [Caml-list] Please help a newbie In-Reply-To: <8E31D6933A2FE64F8AE3CC1381EEDCE70B3194@NT.kal.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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