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



Barry Margolin <barmar@xxxxxxxxxxxx> writes:

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.

Yes, of course. My comment is directed toward the possible
interpretation of a statement like "something is wrong with CL lambda"
as being something revelationary; instead it falls under the subset of
things not specified by CL because CL doesn't specify continuations/CPS.

--
Duane Rettig duane@xxxxxxxxx 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
.



Relevant Pages

  • Re: Whats wrong with Common Lisps lambda ?
    ... 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, ...
    (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)