From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "WJ" Newsgroups: gmane.emacs.help Subject: Re: How close is elisp to CL now? Date: 12 Dec 2012 01:01:13 GMT Organization: NewsGuy - Unlimited Usenet $19.95 Message-ID: References: <1355157429559-272247.post@n5.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 X-Trace: ger.gmane.org 1355274314 19618 80.91.229.3 (12 Dec 2012 01:05:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Dec 2012 01:05:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 12 02:05:28 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TialJ-0002tc-Bx for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Dec 2012 02:05:25 +0100 Original-Received: from localhost ([::1]:43157 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tial6-00044f-JF for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Dec 2012 20:05:12 -0500 Original-Received: by 10.66.86.39 with SMTP id m7mr50687paz.4.1355274118379; Tue, 11 Dec 2012 17:01:58 -0800 (PST) Original-Path: usenet.stanford.edu!kr7no11923385pbb.0!news-out.google.com!6ni40058pbd.1!nntp.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!extra.newsguy.com!newsp.newsguy.com!enews1 Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: p6ac127e26ff174eb70444db9dd5b655b07afc3e3809302fd562fcdd44956b8b0.newsdawg.com User-Agent: XanaNews/1.18.1.6 X-Antivirus: avast! (VPS 121211-1, 12/11/2012), Outbound message X-Antivirus-Status: Clean X-Received-Bytes: 1653 Original-Xref: usenet.stanford.edu gnu.emacs.help:195822 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88140 Archived-At: 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)))