Re: What's wrong with Common Lisp's lambda ?



In article <o0ven89fqi.fsf@xxxxxxxxx>, Duane Rettig <duane@xxxxxxxxx>
wrote:

Looks like a CPS issue to me, not a lambda issue (at least directly).

Since CL doesn't have continuations, I'm not sure there's really much of
a distinction. Lambda is the only way to make a closure, and the point
is that closures can't be used to re-enter a control context that has
been exited.

--
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 ***
.



Relevant Pages

  • Re: Whats wrong with Common Lisps lambda ?
    ... Since CL doesn't have continuations, I'm not sure there's really much of ... Lambda is the only way to make a closure, ... things not specified by CL because CL doesn't specify continuations/CPS. ...
    (comp.lang.lisp)
  • Re: closures and dynamic binding
    ... The double lambda is conceptually more sound in some ... I agree that the default argument syntax is an abuse, ... don't think there's a way to create a closure in Python without ... overrides the outer scope. ...
    (comp.lang.python)
  • Re: Lisp in hardware
    ... > pre-computed index into an environment. ... You have to "pre-compute" a LAMBDA just as much (or rather, ... because the closure object has to hold the captured lexical ...
    (comp.lang.lisp)
  • Re: Cost of closures
    ... a closure consists of a piece of code and a set of lexical ... by the same lambda while the environment part is different. ... in a register or on the stack. ... it must indirect through the `this' pointer. ...
    (comp.lang.lisp)
  • Re: I thought this was the one that worked?
    ... It's still a closure. ... closure for a block regardless. ... That lambda still has a reference to ...
    (comp.lang.ruby)