[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: |
Nicolas Petton |
Subject: |
Re: [Emacs-diffs] master e224c94: * lisp/emacs-lisp/seq.el (seq-doseq): Tighten the code |
Date: |
Sat, 25 Apr 2015 17:10:57 +0200 |
Stefan Monnier writes:
>>> + ;; 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.
Ok, but I still like the fact that `seq-doseq' takes the same arguments
as `dolist'.
Now I would either add it back to the documentation or remove it
completely (and bump the version number of seq.el).
Nico
--
Nicolas Petton
http://nicolas-petton.fr
signature.asc
Description: PGP signature