emacs-diffs
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] master e224c94: * lisp/emacs-lisp/seq.el (seq-doseq):


From: Stefan Monnier
Subject: Re: [Emacs-diffs] master e224c94: * lisp/emacs-lisp/seq.el (seq-doseq): Tighten the code
Date: Sat, 25 Apr 2015 10:54:43 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

>> +       ;; FIXME: Do we really want to support this?
>> +       ,@(cddr spec))))

> Why wouldn't we want to support this?
> It's not only useful, it is also consistent with `dolist'.

I find

   (dolist (a b)
     (body))
   c)

much more readable than

   (dolist (a b c)
     (body))

Especially when `b' is non-trivial.

> I agree.  It's a very useful feature.

"Very useful" sounds grossly exaggerated.

> It annoys me to no end that `while` always returns nil.

But there's not much else it can do.  I think you want to define `until'
instead, since that one could return something (the non-nil value being
tested) occasionally useful.


        Stefan



reply via email to

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