From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: seq-some-p and nil Date: Wed, 9 Sep 2015 13:46:40 -0700 (PDT) Message-ID: <483efdca-6870-4f52-954a-4463604b5c91@default> References: <1441295429.4215.0@smtp.gmail.com> <87si6vl21r.fsf@petton.fr> <878u8k2vnp.fsf@udel.edu> <878u8i69ok.fsf@petton.fr> <674102d7-0e97-478a-af05-ca6d82c17c28@default> <87mvwym01x.fsf@petton.fr> <87h9n5mloa.fsf@petton.fr> <8737ypm547.fsf@petton.fr> <87pp1s976u.fsf@fencepost.gnu.org> <3dc0f1d9-caf1-446a-ab14-2b3e210a02e7@default> <87r3m8lop9.fsf@petton.fr> <87y4ggf2km.fsf@petton.fr> <86617ca2-a339-4df0-ba05-7f33c2b2cfd0@default> <3773e7a4-64c2-40e0-978d-a77a075a7776@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1441831651 30728 80.91.229.3 (9 Sep 2015 20:47:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Sep 2015 20:47:31 +0000 (UTC) Cc: Mark Oteiza , Nicolas Petton , David Kastrup , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 09 22:47:18 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZZmGu-0000nO-0t for ged-emacs-devel@m.gmane.org; Wed, 09 Sep 2015 22:47:12 +0200 Original-Received: from localhost ([::1]:45686 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZmGu-0000je-43 for ged-emacs-devel@m.gmane.org; Wed, 09 Sep 2015 16:47:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZmGV-0000a3-7Q for emacs-devel@gnu.org; Wed, 09 Sep 2015 16:46:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZmGR-0003WZ-TG for emacs-devel@gnu.org; Wed, 09 Sep 2015 16:46:47 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:48919) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZmGR-0003WJ-Ms; Wed, 09 Sep 2015 16:46:43 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t89KkgaE020125 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 9 Sep 2015 20:46:42 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t89KkfIi020654 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 9 Sep 2015 20:46:42 GMT Original-Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userv0122.oracle.com (8.13.8/8.13.8) with ESMTP id t89KkfUj004371; Wed, 9 Sep 2015 20:46:41 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:189777 Archived-At: > > Why make callers of `seq-some' deal with the nil-value-vs-not-found > > issue and... >=20 > There's no such issue with seq-some. It only affects seq-find. Oh, right, because you have not done what Nico proposed wrt returning the element. Fair enough. The second part of what I wrote, which you elided, still applies: Why make callers of `seq-some' ... wrap existing predicates they want to reuse with cruft, just to get the desired effect? Why not just have `seq-some' DTRT, always?