Re: What's wrong with Common Lisp's lambda ?
- From: Barry Margolin <barmar@xxxxxxxxxxxx>
- Date: Thu, 28 Sep 2006 10:48:58 -0400
In article <1159451585.361549.266980@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"Karol Skocik" <Karol.Skocik@xxxxxxxxx> wrote:
Hi,
I have just read this article:
http://www.ddj.com/184404384;jsessionid=KLMB3AY1Q0DHQQSNDLPCKH0CJUNN2JVN?_requ
estid=71496
and in the section "Impact of Logic", I saw this :
Scheme, a dialect of Lisp which got lambda right (Guy Steele and Gerald
Sussman, 1975; http://www.schemers .org/).
I am a happy CL lambda user, and can't find something wrong in CL's
lambda...
Could some functional guru explain me what they meant?
Common Lisp adopted some features of Scheme's lambda, so it doesn't have
as many problems as earlier dialects of Lisp. But there are still
holes. Although CL has lexical extent for variable bindings, it only
has dynamic extent for control bindings. So you can't do:
(defun make-bad-closure ()
(tagbody
label
(print 'got-here)
(lambda () (go label))))
(funcall (make-bad-closure))
--
Barry Margolin, barmar@xxxxxxxxxxxx
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
.
- Follow-Ups:
- Re: What's wrong with Common Lisp's lambda ?
- From: Duane Rettig
- Re: What's wrong with Common Lisp's lambda ?
- From: Ralf Mattes
- Re: What's wrong with Common Lisp's lambda ?
- References:
- What's wrong with Common Lisp's lambda ?
- From: Karol Skocik
- What's wrong with Common Lisp's lambda ?
- Prev by Date: Re: What's wrong with Common Lisp's lambda ?
- Next by Date: Re: Aha! moments
- Previous by thread: Re: What's wrong with Common Lisp's lambda ?
- Next by thread: Re: What's wrong with Common Lisp's lambda ?
- Index(es):
Relevant Pages
|