caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Grant Rettke <grettke@acm.org>
To: Jon Harrop <jon@ffconsultancy.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: WAS Re: [Caml-list] Re: The need to specify 'rec' in a recursive  function defintion
Date: Sat, 29 May 2010 16:27:09 -0500	[thread overview]
Message-ID: <AANLkTinu0XpRpDHlOKgeKdUdrv4FiHItBrEoO6tFuRDQ@mail.gmail.com> (raw)
In-Reply-To: <201002161808.21283.jon@ffconsultancy.com>

On Tue, Feb 16, 2010 at 1:08 PM, Jon Harrop <jon@ffconsultancy.com> wrote:
> On Tuesday 16 February 2010 16:47:03 Grant Rettke wrote:
>> On Tue, Feb 16, 2010 at 10:21 AM, Ashish Agarwal <agarwal1975@gmail.com>
> wrote:
>> > let rec
>>
>> Do OCaml'er look at let rec more as being a message to the programmer,
>> rather than the compiler, that the way I want to define this function
>> is recursively so even if 'f' was previously bound you know which one
>> I mean?
>
> I see it as resolving an ambiguity for both the programmer and compiler. There
> are alternatives as others have mentioned but none seem particularly good or
> bad to me. Moreover, the burden of "rec" is tiny so I don't think it is worth
> discussing in such detail.

It wasn't about the "burden" of having to type 4 extra characters;
rather I was trying to understand the philosophy behind the langguage.


      parent reply	other threads:[~2010-05-29 21:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-16 16:47 Grant Rettke
2010-02-16 18:08 ` Jon Harrop
2010-02-17 17:09   ` Andrej Bauer
2010-05-29 21:27     ` Grant Rettke
2010-05-29 21:27   ` Grant Rettke [this message]

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=AANLkTinu0XpRpDHlOKgeKdUdrv4FiHItBrEoO6tFuRDQ@mail.gmail.com \
    --to=grettke@acm.org \
    --cc=caml-list@yquem.inria.fr \
    --cc=jon@ffconsultancy.com \
    /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).