From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 314DE41ED89 for ; Fri, 13 Jan 2012 05:01:21 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g1CmntCb-QWM for ; Fri, 13 Jan 2012 05:01:16 -0800 (PST) Received: from mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 5147C41ED83 for ; Fri, 13 Jan 2012 05:01:16 -0800 (PST) Received: by werm13 with SMTP id m13so413517wer.26 for ; Fri, 13 Jan 2012 05:01:15 -0800 (PST) Received: by 10.216.134.69 with SMTP id r47mr402013wei.17.1326459674878; Fri, 13 Jan 2012 05:01:14 -0800 (PST) Received: from hotblack-desiato.hh.sledj.net (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25]) by mx.google.com with ESMTPS id n3sm15682452wiz.9.2012.01.13.05.01.12 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 13 Jan 2012 05:01:13 -0800 (PST) Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000) id 20B32A0048; Fri, 13 Jan 2012 13:01:11 +0000 (GMT) To: Xavier Maillard , Pieter Praet , Jani Nikula Subject: Re: [PATCH] emacs: globally replace non-branching "(if (not ..." with "(unless ..." In-Reply-To: References: <87vcogketu.fsf@praet.org> <1326389586-21683-1-git-send-email-pieter@praet.org> User-Agent: Notmuch/0.10.2+186~gd0f7804 (http://notmuchmail.org) Emacs/24.0.92.1 (x86_64-pc-linux-gnu) From: David Edmondson Date: Fri, 13 Jan 2012 13:01:07 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Cc: Notmuch Mail X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2012 13:01:21 -0000 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 13 Jan 2012 13:42:55 +0100, Xavier Maillard wr= ote: > On Fri, 13 Jan 2012 08:23:55 +0000, David Edmondson wrote: > > On Thu, 12 Jan 2012 18:33:06 +0100, Pieter Praet wro= te: > > > Less code, same results, without sacrificing readability. > >=20 > > +1, but why not replace non-branching `if' with `when' as well? >=20 > I tend to use WHEN for case I need to execute multiple > statements. For the rest, IF is ok. Understood. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk8QKxMACgkQaezQq/BJZRb9wACdEVxTIBUpPlBGkm2UmQgQ9Bq4 l+oAoIpBvtSjrKovf70SThOU3kJXsG1u =EX8M -----END PGP SIGNATURE----- --=-=-=--