From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: emacs lisp syntax rfc: (cond (EXPR => (lambda (X) ...))) Date: Wed, 05 Jan 2011 18:36:58 -0500 Message-ID: References: <877hengesr.fsf@ambire.localdomain> <87tyhoa67u.fsf@ambire.localdomain> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: dough.gmane.org 1294270645 5557 80.91.229.12 (5 Jan 2011 23:37:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 Jan 2011 23:37:25 +0000 (UTC) Cc: emacs-devel@gnu.org To: Thien-Thi Nguyen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 06 00:37:19 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pacur-0006ef-OU for ged-emacs-devel@m.gmane.org; Thu, 06 Jan 2011 00:37:17 +0100 Original-Received: from localhost ([127.0.0.1]:36087 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pacuq-0002G2-S2 for ged-emacs-devel@m.gmane.org; Wed, 05 Jan 2011 18:37:16 -0500 Original-Received: from [140.186.70.92] (port=44699 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pacui-0002FS-T2 for emacs-devel@gnu.org; Wed, 05 Jan 2011 18:37:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pacuc-0006x7-3o for emacs-devel@gnu.org; Wed, 05 Jan 2011 18:37:08 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:43681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pacuc-0006x3-1Y for emacs-devel@gnu.org; Wed, 05 Jan 2011 18:37:02 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1PacuY-0007v3-5i; Wed, 05 Jan 2011 18:36:58 -0500 In-reply-to: <87tyhoa67u.fsf@ambire.localdomain> (message from Thien-Thi Nguyen on Tue, 04 Jan 2011 19:12:21 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:134313 Archived-At: I should clarify. The original proposal should read: (cond (EXPR => 1-ARY-FUNC) ...) It would rarely be useful, so it is not worth adding to Emacs Lisp. (cond ((cdr list) => #'car) ((car list) => #'car) That would be possible when the computation to be done happens to match an existing function. That was true in my (artificial) example, but it is rarely true in real life. -- Richard Stallman President, Free Software Foundation 51 Franklin St Boston MA 02110 USA www.fsf.org, www.gnu.org