all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pascal Costanza <pc@p-cos.net>
To: help-gnu-emacs@gnu.org
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	[thread overview]
Message-ID: <5mrsqoFesppjU2@mid.individual.net> (raw)
In-Reply-To: <1191743709.332744.228540@o80g2000hse.googlegroups.com>

David Rush wrote:
> On Oct 7, 6:36 am, gnuist...@hotmail.com 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	other threads:[~2007-10-07 11:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-07  5:34 Nested Lambda function gives error in common lisp, guile, emacs lisp but works in scheme. Why? gnuist006
2007-10-07  5:36 ` gnuist006
2007-10-07  7:55   ` David Rush
2007-10-07 11:04     ` Pascal Costanza [this message]
2007-10-07 11:02 ` Pascal Costanza
2007-10-07 23:27   ` David Rush
2007-10-08  1:14     ` .
2007-10-08  3:43       ` Rainer Joswig
2007-10-08  2:58     ` William D Clinger
2007-10-08  6:42       ` Pascal Costanza
2007-10-08 20:33         ` namekuseijin
2007-10-08 20:48           ` Pascal Costanza
2007-10-08 19:05       ` Don Geddis
2007-10-08  6:39     ` Pascal Costanza
2007-10-08  0:09 ` Matthias Benkard
2007-10-08 12:24   ` Barry Margolin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5mrsqoFesppjU2@mid.individual.net \
    --to=pc@p-cos.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.