Re: [PATCH] emacs: globally replace non-branching "(if (not ..." with "(unless ..."

Subject: Re: [PATCH] emacs: globally replace non-branching "(if (not ..." with "(unless ..."

Date: Fri, 13 Jan 2012 14:37:48 +0200

To:

Cc: Notmuch Mail

From: Tomi Ollila


On Fri, 13 Jan 2012 13:42:55 +0100, Xavier Maillard <xavier@maillard.im> wrote:
> 
> On Fri, 13 Jan 2012 08:23:55 +0000, David Edmondson <dme@dme.org> wrote:
> > On Thu, 12 Jan 2012 18:33:06 +0100, Pieter Praet <pieter@praet.org> wrote:
> > > Less code, same results, without sacrificing readability.
> > 
> > +1, but why not replace non-branching `if' with `when' as well?
> 
> I tend to use WHEN for case I need to execute multiple
> statements. For the rest, IF is ok.

Same here, (when ...) is (if (progn ...)) for me.

> 
> /Xavier

Tomi

Thread: