English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2007-03-28 (14:34)
From: Loup Vaillant <loup.vaillant@g...>
Subject: Re: [Caml-list] How must we teach lexical scope?
2007/3/28, Luc Maranget <luc.maranget@inria.fr>:
> > 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.

OK, It was about the implementation of first class function in a
Pascal like language.

Personally, I think environments are about the implementation of
lexical scope, not  its specifications. Therefore, teaching them in
the first year of a programming course is premature. I may be wrong,
so I am trying to verify that.