emacs-devel
[Top][All Lists]
Advanced

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

Re: seq-some-p and nil


From: Nicolas Petton
Subject: Re: seq-some-p and nil
Date: Tue, 08 Sep 2015 15:21:15 +0200
User-agent: Notmuch/0.19 (http://notmuchmail.org) Emacs/25.0.50.4 (x86_64-unknown-linux-gnu)

Stefan Monnier <address@hidden> writes:

> And using seq-some doesn't have the weird nil corner case.

Just like CL's `find-if' and Scheme's `find', if one is looking for nil,
and if `seq-find' is not supposed to return a boolean, then it's fine
with me.  You'd always have `seq-some' if it's an issue in a specific
scenario anyway.

> And defining seq-find as I did means it's always less efficient.

It's ok, I think, for `seq-find' to reuse `seq-some'.  You can't both
want to remove code duplication and be as efficient as the code you are
reusing.

Nico

Attachment: signature.asc
Description: PGP signature


reply via email to

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