From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Making 'eq' == 'eql' in bignum branch Date: Mon, 20 Aug 2018 23:38:44 -0400 Message-ID: References: <29f933ac-a6bf-8742-66a7-0a9d6d3e5a88@disroot.org> <49d8ba62-c9a5-9203-d882-8e900b441ff3@cs.ucla.edu> <8e0320d9-e0d0-2b57-57cc-2df4399f133c@cs.ucla.edu> <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> Reply-To: rms@gnu.org NNTP-Posting-Host: blaine.gmane.org Content-Type: text/plain; charset=Utf-8 X-Trace: blaine.gmane.org 1534822959 10209 195.159.176.226 (21 Aug 2018 03:42:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 21 Aug 2018 03:42:39 +0000 (UTC) Cc: eliz@gnu.org, eggert@cs.ucla.edu, monnier@iro.umontreal.ca, pipcet@gmail.com, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 21 05:42:34 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 1frxYw-0002XC-9e for ged-emacs-devel@m.gmane.org; Tue, 21 Aug 2018 05:42:34 +0200 Original-Received: from localhost ([::1]:50512 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frxb1-0002PE-LG for ged-emacs-devel@m.gmane.org; Mon, 20 Aug 2018 23:44:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frxVo-0006Mg-40 for emacs-devel@gnu.org; Mon, 20 Aug 2018 23:39:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frxVm-0002ki-B2 for emacs-devel@gnu.org; Mon, 20 Aug 2018 23:39:19 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frxVF-0001iY-CY; Mon, 20 Aug 2018 23:38:45 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1frxVE-000415-Vy; Mon, 20 Aug 2018 23:38:45 -0400 In-Reply-To: (message from Lars Ingebrigtsen on Mon, 20 Aug 2018 17:26:18 +0200) 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:228774 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > I'm pretty sure that I've written code that's essentially along the > lines of > (when list-of-numbers > (let ((i most-positive-fixnum)) > (dolist (a list-of-numbers) > (setq i (min i a))) > i)) > to get the smallest number in a set. This seems to be a real problem. I wonder -- do most of these instances involve binding a variable to most-positive-fixnum? If so, that could be a way to warn about cases that are likely to be wrong, while skipping other cases. How many problem cases is this likely to miss? -- Dr Richard Stallman President, Free Software Foundation (https://gnu.org, https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)