From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 90F6CBC69 for ; Wed, 28 Mar 2007 11:49:31 +0200 (CEST) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.245]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2S9nUII021179 for ; Wed, 28 Mar 2007 11:49:31 +0200 Received: by an-out-0708.google.com with SMTP id c24so2634205ana for ; Wed, 28 Mar 2007 02:49:30 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=A0STcdtVb3gKr2q7WrGH7ulvrLijGvvcdA8JGgCIEBn+6Q5HOiV4mWscjO+n09saTmjPuAUQfItTp0sd92u9M7zwmnNktdvF38lXlv4PaDlpWu+e0N4bi1kh1U4/+FAZNA3rtOSPN/tqM+VtiOIJmBtC5qRMW37OIdF9RdRT1z0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tVDAQkXtamr3X4kgGSKL+VMkQ1ekvV+ulcWUSK1qyIn1NKYsWyzVf72ik8oFMUpMMtqRPbZgthWsNQVuG31UkyDLOKyUDl/obAKiWjywoZlQ3KhtWUKW4ssT3FQhsNaBKmIxXKzlhHBDP56eQxtL5UdbZiQS6wAq7sl/ZT2tz+g= Received: by 10.100.38.16 with SMTP id l16mr84726anl.1175075370179; Wed, 28 Mar 2007 02:49:30 -0700 (PDT) Received: by 10.100.95.7 with HTTP; Wed, 28 Mar 2007 02:49:30 -0700 (PDT) Message-ID: <6cb897b30703280249o6ee19da8p32272fda705b7762@mail.gmail.com> Date: Wed, 28 Mar 2007 11:49:30 +0200 From: "Pierre-Evariste Dagand" To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] How must we teach lexical scope? In-Reply-To: <6f9f8f4a0703280059m5b9af3a1t3a9541b772af98bb@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6f9f8f4a0703280059m5b9af3a1t3a9541b772af98bb@mail.gmail.com> X-j-chkmail-Score: MSGID : 460A3A2A.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 460A3A2A.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; model:01 gpg:01 28,:98 blog:98 061:98 lexical:01 lexical:01 caml-list:01 functional:02 scope:03 scope:03 programming:03 fingerprint:04 scheme:05 pgp:05 2007/3/28, Loup Vaillant : > 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