A critic of Guido's blog on Python's lambda

Duane Rettig duane at franz.com
Fri May 12 16:05:54 EDT 2006


Alexander Schmolck <a.schmolck at gmail.com> writes:

> Ken Tilton <kentilton at gmail.com> writes:
>
>> In Common Lisp we would have:
>> 
>>     (defvar *x*) ;; makes it special
>>     (setf *x* 1)
>>     (print *x*) ;;-> 1
>>     (let ((*x* 2))
>>        (print *x*)) ;; -> 2
>>     (print *x*) ;; -> 1
>
> You seem to think that conflating special variable binding and lexical
> variable binding is a feature and not a bug. What's your rationale?

A bug is a non-conformance to spec.  Kenny's statement was specifically
about Common Lisp, which has a spec.  Now, what was your rationale for
it _being_ a bug?

-- 
Duane Rettig    duane at franz.com    Franz Inc.  http://www.franz.com/
555 12th St., Suite 1450               http://www.555citycenter.com/
Oakland, Ca. 94607        Phone: (510) 452-2000; Fax: (510) 452-0182   



More information about the Python-list mailing list