From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#42644: 28.0.50; Please let max and min accept zero arguments Date: Sat, 01 Aug 2020 11:21:44 +0100 Message-ID: <86v9i2is3r.fsf@gmail.com> References: <87tuxmkhd9.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37638"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt) To: 42644@debbugs.gnu.org Cancel-Lock: sha1:gBoeQNVb2u3J1CkhH6zNqTQFIF0= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 01 12:23:09 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k1ofV-0009gw-8L for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Aug 2020 12:23:09 +0200 Original-Received: from localhost ([::1]:39046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k1ofU-0006XI-B1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Aug 2020 06:23:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k1ofO-0006Wx-ID for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2020 06:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55880) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k1ofO-0001rc-90 for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2020 06:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k1ofO-000357-5s for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2020 06:23:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87tuxmkhd9.fsf@web.de> Resent-From: Andy Moreton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Aug 2020 10:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42644 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.159627732411772 (code B ref -1); Sat, 01 Aug 2020 10:23:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Aug 2020 10:22:04 +0000 Original-Received: from localhost ([127.0.0.1]:39193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1oeS-00033o-8a for submit@debbugs.gnu.org; Sat, 01 Aug 2020 06:22:04 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:40970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1oeM-000332-5x for submit@debbugs.gnu.org; Sat, 01 Aug 2020 06:22:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k1oeL-0006Du-UQ for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2020 06:21:57 -0400 Original-Received: from static.214.254.202.116.clients.your-server.de ([116.202.254.214]:45788 helo=ciao.gmane.io) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k1oeK-0001Vu-IU for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2020 06:21:57 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1k1oeD-0008NU-Ix for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2020 12:21:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/01 05:50:50 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: 20 X-Spam_score: 2.0 X-Spam_bar: ++ X-Spam_report: (2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=1, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=1, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:183755 Archived-At: On Sat 01 Aug 2020, Michael Heerdegen wrote: > 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. A zero argument call to these functions is more likely to be a bug, which this proposal would make harder to locate. If the read syntax is obscure, perhaps it would be better to add new constants e.g. `posinf' and `neginf'. AndyM