From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: seq-some-p and nil Date: Thu, 3 Sep 2015 18:19:46 +0100 Message-ID: References: <1441295429.4215.0@smtp.gmail.com> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1441300795 32150 80.91.229.3 (3 Sep 2015 17:19:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Sep 2015 17:19:55 +0000 (UTC) Cc: Nicolas Petton , =?UTF-8?Q?Simen_Heggest=C3=B8yl?= , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 03 19:19:54 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 1ZXYAy-0003cw-Ue for ged-emacs-devel@m.gmane.org; Thu, 03 Sep 2015 19:19:53 +0200 Original-Received: from localhost ([::1]:50529 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXYAy-0004le-Pj for ged-emacs-devel@m.gmane.org; Thu, 03 Sep 2015 13:19:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXYAv-0004lU-7H for emacs-devel@gnu.org; Thu, 03 Sep 2015 13:19:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXYAu-0004y3-C7 for emacs-devel@gnu.org; Thu, 03 Sep 2015 13:19:49 -0400 Original-Received: from mail-la0-x234.google.com ([2a00:1450:4010:c03::234]:34448) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXYAu-0004xt-4X for emacs-devel@gnu.org; Thu, 03 Sep 2015 13:19:48 -0400 Original-Received: by laeb10 with SMTP id b10so33815630lae.1 for ; Thu, 03 Sep 2015 10:19:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=+cXAZXXYLjMhU7mGK76MhFqiP7B+pYpehjxK0SBNPKM=; b=L1g+KBP3GwXa9DdDMHPJn5h/72HKlG0/Bqv0JRgdprzaEmhk9bGBpOyVW1Vx8em+qM t8Ji3MgmrqRLvLTKsqMHQtPGSMeoygmKoPky3ueM5iiIWuJ0yJA19jYOYRK1BF1ReDiZ fLkkWbMH/MyEzbHJNJf3YunZU9NFcZ5/ZzTQ5XQpTszrDHbzBgjrCIbPVOZgzwOU9u1h Jo/dBEgqmheytqNuIgQnqIunYn4/Q7Y4CMbA4Z8TWaazsqc461ig7a65hjKel4sP8QH4 49uP0PmN2FJzlIqD5azUj2oqcC0LZO/uFx7Lqsgdeg3GpLnaDKTrqDjRp0frfu+T2fef LS5Q== X-Received: by 10.112.146.135 with SMTP id tc7mr23143936lbb.35.1441300786600; Thu, 03 Sep 2015 10:19:46 -0700 (PDT) Original-Received: by 10.25.213.202 with HTTP; Thu, 3 Sep 2015 10:19:46 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: dQjrOUpjaLibzGXzZDtk2iMCWsE X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::234 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:189526 Archived-At: 2015-09-03 17:42 GMT+01:00 Stefan Monnier : >> Two solutions come to my mind: 1) Make `seq-some-p' a pure t/nil >> predicate, or 2) Make it behave like `some' in Common Lisp, which is >> to return the first non-nil value which is returned by an invocation >> of the predicate. So in CL: > > I think that functions named "-p" should return values which are > fundamentally booleans Agreed, and that's not the only case. Both `seq-some-p' and `seq-contains-p' are named as predicates but do not behave as predicates.