Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Pierre-Evariste Dagand" <pedagand@gmail.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] How must we teach lexical scope?
Date: Wed, 28 Mar 2007 11:49:30 +0200	[thread overview]
Message-ID: <6cb897b30703280249o6ee19da8p32272fda705b7762@mail.gmail.com> (raw)
In-Reply-To: <6f9f8f4a0703280059m5b9af3a1t3a9541b772af98bb@mail.gmail.com>

2007/3/28, Loup Vaillant <loup.vaillant@gmail.com>:
> So here are a few questions:
> -> Is lexical scope that important when learning pure functional programming?
> -> Are environments helpful (even the slightest bit) when teaching
> lexical scope?
> -> Where does this idea come from? I have not read a single book, as
> single article nor blog talking about environments.
> -> How can we teach lexical scope? Is there a simple solution, the
> kind of a first year student can understand in less than an hour?

You may find the answer to the 3rd question in Structure and
Interpretation of Computer Programs (Abelson, Sussman & Sussman), p.
236 : "The Environment Model of Evaluation".

In one word : Scheme.

-- 
Pierre-Evariste DAGAND

GPG Fingerprint [pgp.mit.edu] :
F8CC 61DD 40B7 933F 17CA  061F 5591 AAE6 D3EC 7357


  parent reply	other threads:[~2007-03-28  9:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-28  7:59 Loup Vaillant
2007-03-28  8:49 ` [Caml-list] " Luc Maranget
2007-03-28 14:34   ` Loup Vaillant
2007-03-28 15:43     ` ls-ocaml-developer-2006
2007-03-28 17:09       ` Loup Vaillant
2007-03-28 19:24         ` ls-ocaml-developer-2006
2007-03-29  8:17           ` Loup Vaillant
2007-03-29 10:59             ` ls-ocaml-developer-2006
2007-03-28  9:49 ` Pierre-Evariste Dagand [this message]
2007-03-28 17:41 ` Pal-Kristian Engstad

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=6cb897b30703280249o6ee19da8p32272fda705b7762@mail.gmail.com \
    --to=pedagand@gmail.com \
    --cc=caml-list@yquem.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