From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?Q?Johan_Bockg=C3=A5rd?= Newsgroups: gmane.emacs.devel Subject: Re: Making 'eq' == 'eql' in bignum branch Date: Thu, 30 Aug 2018 19:13:45 +0000 Message-ID: <8836uvis5y.fsf@gnu.org> References: <29f933ac-a6bf-8742-66a7-0a9d6d3e5a88@disroot.org> <87lgaio7xd.fsf@tromey.com> <877em1cb0i.fsf@tromey.com> <765767b2-d2e5-a9a6-f724-d58ecf4847bb@cs.ucla.edu> <76081b5d-8c10-0a37-2c97-d4864c0faa80@cs.ucla.edu> <09153aed-361d-4f82-d9ac-b502314769ae@cs.ucla.edu> <83lg91dqd4.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1535656317 32337 195.159.176.226 (30 Aug 2018 19:11:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 30 Aug 2018 19:11:57 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: emacs-devel@gnu.org To: =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 30 21:11:53 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fvSMC-0008KA-Kb for ged-emacs-devel@m.gmane.org; Thu, 30 Aug 2018 21:11:52 +0200 Original-Received: from localhost ([::1]:50500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fvSOI-0004ER-Uy for ged-emacs-devel@m.gmane.org; Thu, 30 Aug 2018 15:14:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fvSO7-0004CC-KW for emacs-devel@gnu.org; Thu, 30 Aug 2018 15:13:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fvSO4-00068Q-B4 for emacs-devel@gnu.org; Thu, 30 Aug 2018 15:13:51 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fvSO4-00068H-4f; Thu, 30 Aug 2018 15:13:48 -0400 Original-Received: from c-f5c0e455.04-211-6c6b701.bbcust.telenor.se ([85.228.192.245]:42868 helo=xubuntu) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fvSO3-0001rp-PW; Thu, 30 Aug 2018 15:13:48 -0400 In-Reply-To: (=?utf-8?Q?=22Cl=C3=A9ment?= Pit-Claudel"'s message of "Sun, 26 Aug 2018 18:10:13 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:229115 Archived-At: Cl=C3=A9ment Pit-Claudel writes: > On 2018-08-26 16:45, Richard Stallman wrote: >> How about if we make min and max accept, and ignore, nil as argument? > > I usually use 1.0e+INF and -1.0e+INF when I need a neutral element for > min and max respectively, rather than most-positive-fixnum. Is there > anything wrong with that? If not, I think we don't even need to change > min and max at all. It doesn't preserve integerness; (min 1 NEUTRAL-ELEMENT) should be 1, but (min 1 1e+INF) is 1.0.