[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: |
Stefan Kangas |
Subject: |
bug#42644: 28.0.50; Please let max and min accept zero arguments |
Date: |
Sat, 1 Aug 2020 03:02:44 -0700 |
Michael Heerdegen <michael_heerdegen@web.de> writes:
> I want to suggest to make the functions `max' and `min' accept zero
> arguments, with
>
> (max) => negative infinity
> (min) => positive infinity
>
> That would be mathematically consistent, and would offer an easier to
> remember syntax to specify the infinities (at least for mathematicians).
> I hate the read syntax suggested in the manual, I have to look it up
> every single time. Ironically, most of the time I use it it's the
> initial value for a max or min number sequence folding.
I'm not sure I'm a fan of this. Is this common in other languages?
Why not just introduce a new constant `infinity'? One could then write
`(- infinity)' to get negative infinity.
> `seq-max' and `seq-min' should also support it.
What would the calls look like?
Best regards,
Stefan Kangas
- bug#42644: 28.0.50; Please let max and min accept zero arguments, Michael Heerdegen, 2020/08/01
- bug#42644: 28.0.50; Please let max and min accept zero arguments,
Stefan Kangas <=
- bug#42644: 28.0.50; Please let max and min accept zero arguments, Mattias EngdegÄrd, 2020/08/01
- bug#42644: 28.0.50; Please let max and min accept zero arguments, Andy Moreton, 2020/08/01
- bug#42644: 28.0.50; Please let max and min accept zero arguments, Drew Adams, 2020/08/01
- bug#42644: 28.0.50; Please let max and min accept zero arguments, Michael Heerdegen, 2020/08/01
- bug#42644: 28.0.50; Please let max and min accept zero arguments, Dmitry Alexandrov, 2020/08/02