From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: string> missing? Date: Wed, 03 Jun 2015 17:26:46 +0200 Message-ID: <87zj4gu821.fsf@gnu.org> References: <87oakxkvqw.fsf@petton.fr> <83zj4grgkc.fsf@gnu.org> <87sia8n8b5.fsf@petton.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1433345240 11379 80.91.229.3 (3 Jun 2015 15:27:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Jun 2015 15:27:20 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Nicolas Petton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 03 17:27:08 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 1Z0AZL-0007o6-J8 for ged-emacs-devel@m.gmane.org; Wed, 03 Jun 2015 17:27:03 +0200 Original-Received: from localhost ([::1]:36208 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0AZL-0004Tu-3G for ged-emacs-devel@m.gmane.org; Wed, 03 Jun 2015 11:27:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0AZG-0004RY-NA for emacs-devel@gnu.org; Wed, 03 Jun 2015 11:26:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0AZF-0000Ci-WB for emacs-devel@gnu.org; Wed, 03 Jun 2015 11:26:58 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:51139) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0AZA-0000AU-0D; Wed, 03 Jun 2015 11:26:52 -0400 Original-Received: from thinkpad-t440p (dhcp88.uni-koblenz.de [141.26.71.88]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 0E5DE1A8219; Wed, 3 Jun 2015 17:26:50 +0200 (CEST) Mail-Followup-To: Nicolas Petton , Eli Zaretskii , emacs-devel@gnu.org In-Reply-To: <87sia8n8b5.fsf@petton.fr> (Nicolas Petton's message of "Wed, 03 Jun 2015 17:03:10 +0200") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 141.26.64.15 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:186988 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Nicolas Petton writes: >>> From: Nicolas Petton Date: Wed, 03 Jun 2015 >>> 11:05:11 +0200 >>>=20 >>> I just saw that we do have `string<' (`string-lessp') but we miss >>> `string>'? Is this on purpose? >> >> What would '(string> A B)' do that '(string< B A)' doesn't? > > Right, but then why do we have `(> a b)'? For the sake completeness, as > we have #'> and #'<, I'd add `string>' to Elisp. With that argument, we'd also need string<=3D and string>=3D. But I'd agree that (sort #'string> list) is a bit nicer than (sort (lambda (a b) (string< b a)) list) Bye, Tassilo --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAlVvHLYACgkQ795mVA/1wV1M1AD/WZiiMEw+C1zQi+RpdXM0h1ti cbzDjE0wpU+6RwSkW4YA/RvrqLqEJ5U7GYZBSsjIWjJU/NRBtwzDNpjn4iOlO0C5 =iJXP -----END PGP SIGNATURE----- --=-=-=--