From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: Sweeter Emacs Lisp Date: Mon, 22 Jul 2013 18:33:15 +0200 Message-ID: <87a9lezh9w.fsf@zigzag.favinet> References: <8738rh6ftk.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1374510674 17093 80.91.229.3 (22 Jul 2013 16:31:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Jul 2013 16:31:14 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 22 18:31:15 2013 Return-path: Envelope-to: ged-emacs-devel@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 1V1J0z-0005k9-Qq for ged-emacs-devel@m.gmane.org; Mon, 22 Jul 2013 18:31:13 +0200 Original-Received: from localhost ([::1]:57613 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1J0z-0003Y4-F1 for ged-emacs-devel@m.gmane.org; Mon, 22 Jul 2013 12:31:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1J0S-0002wY-Ow for emacs-devel@gnu.org; Mon, 22 Jul 2013 12:30:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1J0O-0005P8-UP for emacs-devel@gnu.org; Mon, 22 Jul 2013 12:30:40 -0400 Original-Received: from smtp207.alice.it ([82.57.200.103]:44691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1J0O-0005Ov-IE for emacs-devel@gnu.org; Mon, 22 Jul 2013 12:30:36 -0400 Original-Received: from zigzag.favinet (95.244.65.74) by smtp207.alice.it (8.6.060.26) id 51DA965502B1A76B for emacs-devel@gnu.org; Mon, 22 Jul 2013 18:30:34 +0200 Original-Received: from ttn by zigzag.favinet with local (Exim 4.72) (envelope-from ) id 1V1J37-00065r-50 for emacs-devel@gnu.org; Mon, 22 Jul 2013 18:33:25 +0200 In-Reply-To: (Stefan Monnier's message of "Mon, 22 Jul 2013 11:24:13 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.103 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162070 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable () Stefan Monnier () Mon, 22 Jul 2013 11:24:13 -0400 So maybe a when-let makes sense, tho I'd prefer a when-let* (which has also been seen under the name let-and, IIRC). Are you willing to consider Scheme's =E2=80=98and-let*=E2=80=99 (SRFI 2). IIRC i also proposed, maybe a year back, a Schemish =E2=80=98cond=E2=80=99 (with =E2=80=98=3D>=E2=80=99) but it was rejected. RMS suggested instead: (cond VAR (CONDITION [BODY...]) ...) which would bind VAR to the (non-nil) value of CONDITION such that BODY can refer to it, equivalent to: (let (VAR) (cond ((setq VAR CONDITION) [BODY...]) ...)) I like this; it strikes me as more Lispy. Unfortunately, i don't remember if this "cond w/ VAR" went anywhere (so probably it didn't). =2D-=20 Thien-Thi Nguyen GPG key: 4C807502 (if you're human and you know it) read my lisp: (responsep (questions 'technical) (not (via 'mailing-list))) =3D> nil --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAlHtXs4ACgkQZwMiJEyAdQLKUQCeN41L5UMXE08fTzmit/xL7DKj qhAAoM2Ab23/rUDqQv2SFufcPes8LGWD =NdMf -----END PGP SIGNATURE----- --=-=-=--