help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nested Lambda function gives error in common lisp, guile, emacs lisp


From: Pascal Costanza
Subject: Re: Nested Lambda function gives error in common lisp, guile, emacs lisp but works in scheme. Why?
Date: Sun, 07 Oct 2007 13:04:56 +0200
User-agent: Thunderbird 2.0.0.6 (Macintosh/20070728)

David Rush wrote:
On Oct 7, 6:36 am, address@hidden wrote:
Sorry, guile is scheme. So no error in guile but errors are
gotten in clisp and emacs.

Well that's because it's an error in Lisp dialects where functions are
not first-class denotable values.

In Common Lisp (and presumably Emacs Lisp), functions are as first-class as in Scheme and elsewhere. You just have to do a bit extra to use them as first-class values, that's all. There aren't any fundamental restrictions there because of that.

(In Common Lisp, you also get lexical scoping by default, so you get what you expect if you come from a functional programming background.)


Pascal

--
My website: http://p-cos.net
Common Lisp Document Repository: http://cdr.eurolisp.org
Closer to MOP & ContextL: http://common-lisp.net/project/closer/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]