From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fren Zeee Newsgroups: gmane.emacs.devel Subject: Re: emacs lisp syntax rfc: (cond (EXPR => (lambda (X) ...))) Date: Sun, 2 Jan 2011 13:57:58 -0800 Message-ID: References: <877hengesr.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1294005496 7179 80.91.229.12 (2 Jan 2011 21:58:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 2 Jan 2011 21:58:16 +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 Sun Jan 02 22:58:09 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 1PZVwG-0008Nk-3z for ged-emacs-devel@m.gmane.org; Sun, 02 Jan 2011 22:58:08 +0100 Original-Received: from localhost ([127.0.0.1]:35758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZVwF-0000yP-Ft for ged-emacs-devel@m.gmane.org; Sun, 02 Jan 2011 16:58:07 -0500 Original-Received: from [140.186.70.92] (port=33551 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZVw9-0000yF-GE for emacs-devel@gnu.org; Sun, 02 Jan 2011 16:58:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZVw8-0004sd-8Q for emacs-devel@gnu.org; Sun, 02 Jan 2011 16:58:01 -0500 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:63624) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZVw8-0004sZ-45 for emacs-devel@gnu.org; Sun, 02 Jan 2011 16:58:00 -0500 Original-Received: by iyj17 with SMTP id 17so13214010iyj.0 for ; Sun, 02 Jan 2011 13:57:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=IIzgAErCAsS5W9VJakJEn3vX2y3eEpWy5wd+wM3UfzI=; b=gTDniVs73Vssl1scXr8QBoHrbEs1hVxCb7sxlaHuoIl/A0+aqbxBAmrbky4I1XyEQJ O3sHfH3W1nZSgE2vj1gElbFp6ObzItgFQJe0aUgas0ZVraNDDCIZlKMLaInSetyNqPQl ouJXJ60CnQmjiCvSEtN4Ayum9dsMcLw8Qm/4c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=pUp1W5A4QaGLPB5DN0lfAH2njt47+Q8qJG9g4FvcE8Zfz1zWBoS53vpdZf1NaDnzlp pUjNM9OeOtmw7ncpOdi+s7UhPERhYWMQdtkZAI3/kmkAEH2PismZG8ekkT6qF4bd3PmQ QWUVPIhAtbC+xqTGxAs7N0mQURJyRiPKNBiuA= Original-Received: by 10.231.206.69 with SMTP id ft5mr3749588ibb.88.1294005478829; Sun, 02 Jan 2011 13:57:58 -0800 (PST) Original-Received: by 10.231.11.137 with HTTP; Sun, 2 Jan 2011 13:57:58 -0800 (PST) In-Reply-To: <877hengesr.fsf@ambire.localdomain> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:134177 Archived-At: On Sun, Jan 2, 2011 at 1:45 PM, Thien-Thi Nguyen wrote: > In Scheme, the expression: > > =A0(cond (EXPR =3D> (lambda (X) ...))) > > provides the lambda expression parameter X with the non-false > value computed from evaluating EXPR. =A0However, if EXPR evaluates > to false, control falls through to the next =91cond=92 clause, as > usual. =A0The syntax requires the symbol =91=3D>=92 between EXPR and the > lambda expression, without which the non-false value is discarded > (i.e., the status quo). To tell you the truth the implies looks not very pretty. I would rather that emacs is made into lexically scoped lisp like CL than these teeni changes. Just write the whole thingy like CL. This will increase the number of people who can help newbies in lisp as there is only one lisp, the CL. This kind of drastic transition would be easier than any other. > What do people think of adding this to Emacs Lisp? =A0(I would be > grateful for pointers to any previous discussion on the matter.) Thien, I would be grateful if you can finish and not STALL the previous thread where you put an inkomplet reply. I have given my opinion and hope it helps. Franz Xe