caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Ben Millwood <bmillwood@janestreet.com>
To: Jordan W <jordojw@gmail.com>
Cc: Gabriel Scherer <gabriel.scherer@gmail.com>,
	"caml-list@inria.fr" <caml-list@inria.fr>
Subject: Re: [Caml-list] Mutual recursion propagates individual recursion. Why?
Date: Mon, 2 Mar 2015 09:49:37 +0000	[thread overview]
Message-ID: <CA+MHO53Cj_EZ4YY=M0+vfoeURzpA0ROvKM9N8__80rbO-0OgOQ@mail.gmail.com> (raw)
In-Reply-To: <CAPOA5_5-G-ura60Dr98xjfgja-GJ-B8_TMoqT7Gyx3ipF-cCqQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 553 bytes --]

On 2 March 2015 at 09:18, Jordan W <jordojw@gmail.com> wrote:
>
> I suspect #2 would benefit metaprogramming just as well as the `let ..
> and ` example. With metaprogramming, where we wish to isolate the
> environments of several bindings simultaneously, how does a *single*
> one of these bindings opt into self-recursiveness without forcing the
> others into self-recursiveness (and thus "polluting the environment")?


There's always this:

let x = 4
and y = 7
and factorial = let rec f n = if n = 0 then 1 else n * f (n - 1) in f
and z = 12
in
...

[-- Attachment #2: Type: text/html, Size: 956 bytes --]

      reply	other threads:[~2015-03-02  9:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-02  6:25 Jordan W
2015-03-02  7:25 ` Gabriel Scherer
2015-03-02  9:14   ` Ben Millwood
2015-03-02  9:18   ` Jordan W
2015-03-02  9:49     ` Ben Millwood [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='CA+MHO53Cj_EZ4YY=M0+vfoeURzpA0ROvKM9N8__80rbO-0OgOQ@mail.gmail.com' \
    --to=bmillwood@janestreet.com \
    --cc=caml-list@inria.fr \
    --cc=gabriel.scherer@gmail.com \
    --cc=jordojw@gmail.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).