caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Brian Rogoff <bpr@best.com>
To: Dave Berry <Dave@kal.com>
Cc: ocaml mailing list <caml-list@inria.fr>
Subject: RE: [Caml-list] Please help a newbie
Date: Thu, 2 Aug 2001 09:08:29 -0700 (PDT)	[thread overview]
Message-ID: <Pine.BSF.4.21.0108020902070.11998-100000@shell5.ba.best.com> (raw)
In-Reply-To: <8E31D6933A2FE64F8AE3CC1381EEDCE70B3194@NT.kal.com>

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


  reply	other threads:[~2001-08-02 16:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-02 13:37 Dave Berry
2001-08-02 16:08 ` Brian Rogoff [this message]
2001-08-02 13:42 Johann Spies
2001-08-02 12:54 ` Frank Atanassow
2001-08-02 13:01 ` Francois Thomasset
2001-08-02 13:25   ` Francois Thomasset
2001-08-02 13:05 ` Sven
2001-08-03 10:58 Johann Spies
2001-08-03 18:23 ` [Caml-list] Please help a newbie md5i
2001-08-05 21:37   ` John Max Skaller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.BSF.4.21.0108020902070.11998-100000@shell5.ba.best.com \
    --to=bpr@best.com \
    --cc=Dave@kal.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).