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: Mattias Engdegård
Subject: bug#42644: 28.0.50; Please let max and min accept zero arguments
Date: Sat, 1 Aug 2020 12:21:51 +0200

That's funny, I was just thinking about whether to do anything about the 
byte-compiler raising an error when compiling (min) and (max), rather than just 
emitting a warning.

Extending min/max with ±Inf as identities is indeed attractive and would 
simplify some code by removing an edge or base case. The main argument against 
the extension is the worry that some errors would become hidden or handled 
inappropriately.

If you find ±1.0e+INF to be hard to remember -- you are not alone -- we could 
add the constants positive-infinity, negative-infinity, or just infinity.






reply via email to

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