stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [STUMP] [PATCH] Fix error message when aborting colon


From: Lionel Flandrin
Subject: Re: [STUMP] [PATCH] Fix error message when aborting colon
Date: Thu, 5 Nov 2009 16:25:52 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

On Thu, Nov 05, 2009 at 04:04:35PM +0100, Mikael Jansson wrote:
> Lionel Flandrin wrote:
> > It's all in the subject.
> >  
> 
> +    (let ((input (read-one-line screen prompt initial-input)))
> +      (if input
> +          (string-trim " " input)
> +          nil))))
> 
> Style question: why (if ... nil) rather than (when ...)?
> 

I just though it made more obvious "nil" is the return value rather
than implying it. Not sure it's a good thing, it just looked clearer
to me when I wrote it.

-- 
Lionel Flandrin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]