From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Johan_Bockg=C3=A5rd?= Newsgroups: gmane.emacs.devel Subject: Re: master 71783e9: Add the string-numeric-lessp function Date: Mon, 07 Mar 2016 22:14:52 +0100 Message-ID: <87egbmf0s3.fsf@gnu.org> References: <20160221043348.25201.81719@vcs.savannah.gnu.org> <87twl2fzaw.fsf@gnus.org> <56CA2C66.7040306@cs.ucla.edu> <87povpzc9c.fsf@gnus.org> <56CA8578.2030004@cs.ucla.edu> <87twl1xul1.fsf@gnus.org> <56CA8BB8.6040908@cs.ucla.edu> <8737s3jfrr.fsf@mail.linkov.net> <5ea313cd-bc7f-4c18-abe3-69bcc4838cbf@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1457385319 15334 80.91.229.3 (7 Mar 2016 21:15:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Mar 2016 21:15:19 +0000 (UTC) Cc: Lars Ingebrigtsen , Paul Eggert , emacs-devel@gnu.org, Juri Linkov To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 07 22:15:08 2016 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 1ad2Uc-00048I-IN for ged-emacs-devel@m.gmane.org; Mon, 07 Mar 2016 22:15:06 +0100 Original-Received: from localhost ([::1]:58632 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ad2Ub-0005wg-V9 for ged-emacs-devel@m.gmane.org; Mon, 07 Mar 2016 16:15:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ad2UW-0005tW-PS for emacs-devel@gnu.org; Mon, 07 Mar 2016 16:15:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ad2UR-0000FZ-Pu for emacs-devel@gnu.org; Mon, 07 Mar 2016 16:15:00 -0500 Original-Received: from smtprelay-b21.telenor.se ([195.54.99.212]:37856) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ad2UR-0000Er-Ep for emacs-devel@gnu.org; Mon, 07 Mar 2016 16:14:55 -0500 Original-Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-b21.telenor.se (Postfix) with ESMTP id 75B7ED485 for ; Mon, 7 Mar 2016 22:14:54 +0100 (CET) X-SMTPAUTH-B2: [bocjoh] X-SENDER-IP: [85.229.1.217] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2AiCgAW791WPNkB5VVcGQEBAQELAQIBAQECgwpSbYJttheDMyGFbgKBLTwRAQEBAQEBAQYBAQEBQUCEQgEBBFYjEAshJQ8BBBgBDAoaE4goAQm+UwEBAQEBAQQBAQEBARcEilSIdAWNMIl6nGeOVTaEETsuAQGJOwEBAQ X-IPAS-Result: A2AiCgAW791WPNkB5VVcGQEBAQELAQIBAQECgwpSbYJttheDMyGFbgKBLTwRAQEBAQEBAQYBAQEBQUCEQgEBBFYjEAshJQ8BBBgBDAoaE4goAQm+UwEBAQEBAQQBAQEBARcEilSIdAWNMIl6nGeOVTaEETsuAQGJOwEBAQ X-IronPort-AV: E=Sophos;i="5.22,553,1449529200"; d="scan'208";a="212833270" Original-Received: from c-d901e555.04-211-6c6b701.cust.bredbandsbolaget.se (HELO muon.localdomain) ([85.229.1.217]) by ipb4.telenor.se with ESMTP; 07 Mar 2016 22:14:54 +0100 Original-Received: by muon.localdomain (Postfix, from userid 1000) id 170514841D3; Mon, 7 Mar 2016 22:14:52 +0100 (CET) In-Reply-To: <5ea313cd-bc7f-4c18-abe3-69bcc4838cbf@default> (Drew Adams's message of "Sun, 6 Mar 2016 18:27:50 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.54.99.212 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:201078 Archived-At: Drew Adams writes: > `string-numeric-lessp' really should follow the Emacs > convention and be called `string-numeric-less-p'. > > It's not because `string-less-p' is misnamed that we > should add to this mistake. `time-less-p' is correctly > named, for example. > > Or else the rule should be clarified to incorporate > `-lessp' exceptions, so they are within, and not outside, > the rule. I think the rule in the Emacs Lisp manual is too simplistic. In practice we seem to follow something closer to this rule: By convention, the names of predicates usually end in the letter p (which stands for ``predicate''). Common Lisp uses a uniform convention in hyphenating names of predicates. If the name of the predicate is formed by adding a p to an existing name, such as the name of a data type, a hyphen is placed before the final p if and only if there is a hyphen in the existing name. For example, number begets numberp but standard-char begets standard-char-p. On the other hand, if the name of a predicate is formed by adding a prefixing qualifier to the front of an existing predicate name, the two names are joined with a hyphen and the presence or absence of a hyphen before the final p is not changed. For example, the predicate string-lessp has no hyphen before the p because it is the string version of lessp (a MacLisp function that has been renamed < in Common Lisp). The name string-less-p would incorrectly imply that it is a predicate that tests for a kind of object called a string-less, and the name stringlessp would connote a predicate that tests whether something has no strings (is ``stringless'')! from CLTL, https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node69.html