Choosing a new language

John Thingstad jpthing at online.no
Sat Dec 29 13:39:17 EST 2007


På Sat, 29 Dec 2007 18:58:30 +0100, skrev Arnaud Delobelle  
<arnodel at googlemail.com>:

> On Dec 29, 3:11 pm, Achim Schneider <bars... at web.de> wrote:
> [...]
>> Lisp throws lambda calculus right into your face, which is a good
>> thing. Scheme might be the better choice, it's lexically  
>> scoped:http://mitpress.mit.edu/sicp/
>> There are also video lectures with people with funny hats speaking wise
>> words.
>
> Common Lisp has lexical scoping as well (although defvar allows you to
> declare dynamically scoped variables).
>
> --
> Arnaud
>

More precisely defvar, defparameter, progv  and (declare (special var))  
create variables with dynamic scope.
let and let* do as you said use a lexical scope. (unless you use a declare  
as above)


--------------
John Thingstad



More information about the Python-list mailing list