[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: |
Artur Malabarba |
Subject: |
Re: [Emacs-diffs] master e224c94: * lisp/emacs-lisp/seq.el (seq-doseq): Tighten the code |
Date: |
Sat, 25 Apr 2015 17:22:25 +0100 |
>> 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.
Given that the last test of while is always nil, it could return the
result of the last body (or nil if body was never run). That's what I
wished it did the several times when I ran into this limitation,
though “annoys me to no end” /was/ a gross exageration. :)
Re: [Emacs-diffs] master e224c94: * lisp/emacs-lisp/seq.el (seq-doseq): Tighten the code, Stefan Monnier, 2015/04/25