all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "WJ" <w_a_x_man@yahoo.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How close is elisp to CL now?
Date: 12 Dec 2012 01:01:13 GMT	[thread overview]
Message-ID: <ka8l0p01ema@enews1.newsguy.com> (raw)
In-Reply-To: mailman.14985.1355159920.855.help-gnu-emacs@gnu.org

Didier Verna wrote:

>   Lexical scope brings Emacs Lisp closer to any sane Lisp (which
>   should be lexically scoped by default[1]). This, in fact, has little
>   to do with Common Lisp. One could even argue that it is the opposite,
>   since one disctinctive feature of Common Lisp is precisely to offer
>   dynamic scoping, provided that you ask for it explicitely.

The CL package adds some features that go beyond CL.

EMACS Lisp:

(require 'cl)
(defun* foo ((name (sex (age))))
  (list age sex name))
(foo '(John (male (33))))

==> (33 male John)

Common Lisp:

(defun foo ((name (sex (age))))
  (list age sex name))

; in: LAMBDA NIL
;     (SB-INT:NAMED-LAMBDA FOO
;         ((NAME (SEX (AGE))))
;       (BLOCK FOO (LIST AGE SEX NAME)))
; ==>
;   #'(SB-INT:NAMED-LAMBDA FOO
;         ((NAME (SEX (AGE))))
;       (BLOCK FOO (LIST AGE SEX NAME)))
;
; caught ERROR:
;   Required argument is not a symbol: (NAME (SEX (AGE)))
 



  parent reply	other threads:[~2012-12-12  1:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-10 16:37 How close is elisp to CL now? juliewith
2012-12-10 17:14 ` Didier Verna
2012-12-10 18:05   ` Matt Price
     [not found]   ` <mailman.14991.1355162755.855.help-gnu-emacs@gnu.org>
2012-12-10 19:14     ` Burton Samograd
2012-12-10 20:57       ` William Gardella
2012-12-11 22:26         ` Julien Cubizolles
     [not found]         ` <mailman.15081.1355264829.855.help-gnu-emacs@gnu.org>
2012-12-12  7:02           ` William Gardella
2013-01-04 14:53             ` Julien Cubizolles
     [not found] ` <mailman.14985.1355159920.855.help-gnu-emacs@gnu.org>
2012-12-12  1:01   ` WJ [this message]
     [not found] <mailman.14982.1355157445.855.help-gnu-emacs@gnu.org>
2012-12-10 17:01 ` Burton Samograd
2012-12-10 22:02   ` Xavier Maillard
2012-12-10 21:41 ` Pascal J. Bourguignon
2012-12-10 23:16   ` juliewith
2012-12-11 12:30   ` Joost Kremers
2012-12-11 12:59     ` Jambunathan K

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=ka8l0p01ema@enews1.newsguy.com \
    --to=w_a_x_man@yahoo.com \
    --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.