Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
How must we teach lexical scope?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Pierre-Evariste Dagand <pedagand@g...>
Subject: Re: [Caml-list] How must we teach lexical scope?
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 [] :
F8CC 61DD 40B7 933F 17CA  061F 5591 AAE6 D3EC 7357