From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: if vs. when vs. and: style question Date: Tue, 24 Mar 2015 08:21:16 +0100 Message-ID: <87h9taoo7n.fsf@zigzag.favinet> References: <87sicvwckx.fsf@wmi.amu.edu.pl> Reply-To: help-gnu-emacs@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 1427181563 26591 80.91.229.3 (24 Mar 2015 07:19:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Mar 2015 07:19:23 +0000 (UTC) To: Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 24 08:19:19 2015 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 1YaJ7O-0007yl-1r for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Mar 2015 08:19:18 +0100 Original-Received: from localhost ([::1]:59375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaJ7M-0000r3-Oq for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Mar 2015 03:19:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaJ7A-0000qZ-Pa for help-gnu-emacs@gnu.org; Tue, 24 Mar 2015 03:19:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YaJ76-0002Mk-PK for help-gnu-emacs@gnu.org; Tue, 24 Mar 2015 03:19:04 -0400 Original-Received: from mail.agora-net.com ([67.59.132.6]:41720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaJ76-0002Jr-LA for help-gnu-emacs@gnu.org; Tue, 24 Mar 2015 03:19:00 -0400 Original-Received: from ttn by mail.agora-net.com with local (Exim 4.71) (envelope-from ) id 1YaJ6p-0007yc-Ax for help-gnu-emacs@gnu.org; Tue, 24 Mar 2015 03:18:43 -0400 Original-Received: from ttn by zigzag.favinet with local (Exim 4.80) (envelope-from ) id 1YaJ9R-0006ii-88 for help-gnu-emacs@gnu.org; Tue, 24 Mar 2015 08:21:25 +0100 Mail-Followup-To: help-gnu-emacs@gnu.org In-Reply-To: <87sicvwckx.fsf@wmi.amu.edu.pl> (Marcin Borkowski's message of "Mon, 23 Mar 2015 23:53:02 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: ttn@gnuvola.org X-SA-Exim-Scanned: No (on mail.agora-net.com); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 67.59.132.6 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:103284 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable () Marcin Borkowski () Mon, 23 Mar 2015 23:53:02 +0100 Notice: by =E2=80=9Cbetter=E2=80=9D I mean =E2=80=9Cmore idiomatic=E2=80= =9D, or =E2=80=9Ceasier/faster to read for a human=E2=80=9D, or =E2=80=9Cmore li= kely to be used by an experienced Elisp hacker=E2=80=9D, etc. Personally, i loathe 1-armed-=E2=80=98if=E2=80=99 expressions; they are a b= light on the smoothness, equivalent to "umm", "err" in a formal talk. When i inherit code (e.g., EDB), i early-on put effort into killing those abominations. (This has the predictable side effect of introducing bugs, but is anyway useful for familiarizing myself w/ the code, which in the long run is better -- especially if those bugs can be recognized and fixed!) For =E2=80=98or=E2=80=99 and =E2=80=98and=E2=80=99, i use those very much i= n Scheme and very little in Emacs Lisp, and preferentially for pure expressions. I like (and use) =E2=80=98when=E2=80=99 and =E2=80=98unless=E2=80=99 for th= eir implicit =E2=80=98progn=E2=80=99. (Insert quote on aesthetics vs principles, here. :-D) =2D-=20 Thien-Thi Nguyen ----------------------------------------------- (if you're human and you know it) read my lisp: (defun responsep (type via) (case type (technical (eq 'mailing-list via)) ...)) =2D--------------------------------------------- GPG key: 4C807502 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlUREG8ACgkQZwMiJEyAdQLsUwCfTS527o2IsC+5Qmpnchkj6Qtz IC8AoOdwHjxkSXw22nSBFtf9sWU7IMsM =JzYE -----END PGP SIGNATURE----- --=-=-=--