[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making 'eq' == 'eql' in bignum branch

From: Lars Ingebrigtsen
Subject: Re: Making 'eq' == 'eql' in bignum branch
Date: Mon, 20 Aug 2018 17:26:18 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> So I don't think we want to argue for a total elimination of
> most-positive-fixnum from our code.

I agree, but its usage in Emacsen with larger numbers present can be

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)))

to get the smallest number in a set.  (Not exactly like that, of course,
but using `most-positive-fixnum' as a guard value, knowing that none of
numbers in list-of-numbers can be larger than that guard value.)

So perhaps a warning might be warranted?

(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

[Prev in Thread] Current Thread [Next in Thread]