unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: 42644@debbugs.gnu.org
Subject: bug#42644: 28.0.50; Please let max and min accept zero arguments
Date: Sun, 02 Aug 2020 01:34:07 +0200	[thread overview]
Message-ID: <877duiym8g.fsf@web.de> (raw)
In-Reply-To: <87tuxmkhd9.fsf@web.de> (Michael Heerdegen's message of "Sat, 01 Aug 2020 08:30:42 +0200")

Hello to all,

> I want to suggest to make the functions `max' and `min' accept zero
> arguments
>
>   (max) => negative infinity
>   (min) => positive infinity

thanks for your comments.  More or less everyone seems to prefer the
introduction of constants instead.  I have no objections to solve my
"issue" (solely) in that way.  (And for `seq-min' and `seq-max' my
suggestion would also introduce the problem that the return value would
be undefinable if the given SEQUENCE is empty but a PREDICATE or KEY
function is specified).

Ok - how and where should we define such constant(s)?  I think I would
prefer Stefan's suggestion to introduce only one constant named
"infinity", for no strong reasons.

Thanks,

Michael.





  parent reply	other threads:[~2020-08-01 23:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-01  6:30 bug#42644: 28.0.50; Please let max and min accept zero arguments Michael Heerdegen
2020-08-01 10:02 ` Stefan Kangas
2020-08-01 10:21 ` Andy Moreton
2020-08-01 10:21 ` Mattias Engdegård
2020-08-01 16:31 ` Drew Adams
2020-08-01 23:34 ` Michael Heerdegen [this message]
2020-08-02  4:02   ` Lars Ingebrigtsen
2020-08-02  6:43 ` Dmitry Alexandrov
2020-08-03  2:08   ` Michael Heerdegen
2020-08-03 11:05     ` Stefan Kangas
2020-08-03 17:11     ` Dmitry Alexandrov
2022-02-12  8:09 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877duiym8g.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=42644@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).