bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#42644: 28.0.50; Please let max and min accept zero arguments


From: Dmitry Alexandrov
Subject: bug#42644: 28.0.50; Please let max and min accept zero arguments
Date: Mon, 03 Aug 2020 20:11:25 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Michael Heerdegen <michael_heerdegen@web.de> wrote:
> Dmitry Alexandrov <dag@gnui.org> writes:
>
>> What reader syntax would you prefer?
>
> I'm not criticizing the current syntax for the infinities.  It's just hard to 
> remember them.

???

>> As for that regard, whatʼs wrong with, (/ +1.0 0) and (/ -1.0 0)?
>
> Wow, that doesn't error?

Thankfully, no.  So third-parties do not have to invent another numbers, like 
in some other languages:

        >>> 1 / 0.0
        Traceback (most recent call last):
          File "<stdin>", line 1, in <module>
        ZeroDivisionError: float division by zero
        >>> import numpy
        >>> 1 / numpy.float64(0.0)
        inf

> It's hard to find a mathematical interpretation in which this makes any sense.

Dunno.  It makes perfect natural sense to me.  Perhaps, mathematics is too 
mind-warping. :-)

Also, Iʼd better emphasised zero, not numerator, with explicit flonum notation. 
 I hope, writing the same thing another way would help to realise how obvious 
it is:

        (/ +1 0.0) ; ⇒ 1.0e+INF

Attachment: signature.asc
Description: PGP signature


reply via email to

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