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=-0.0 required=5.0 tests=NO_RELAYS autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: by yquem.inria.fr (Postfix, from userid 18041) id 569D6BC69; Wed, 28 Mar 2007 10:49:55 +0200 (CEST) Date: Wed, 28 Mar 2007 10:49:55 +0200 To: Loup Vaillant Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] How must we teach lexical scope? Message-ID: <20070328084955.GA21199@yquem.inria.fr> References: <6f9f8f4a0703280059m5b9af3a1t3a9541b772af98bb@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6f9f8f4a0703280059m5b9af3a1t3a9541b772af98bb@mail.gmail.com> User-Agent: Mutt/1.5.9i From: maranget@yquem.inria.fr (Luc Maranget) X-Spam: no; 0.00; maranget:01 maranget:01 compil:01 interprete:01 --luc:01 blog:98 luc:01 luc:01 lexical:01 lexical:01 caml-list:01 poly:02 functional:02 scope:03 scope:03 > 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? An attempt to answer your question 1. Bon, c'est en français (sorry French only). http://www.enseignement.polytechnique.fr/profs/informatique/Luc.Maranget/compil/poly/interprete.html#htoc45 --Luc