GNU bug report logs - #42644
28.0.50; Please let max and min accept zero arguments

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Michael Heerdegen <michael_heerdegen@HIDDEN>; dated Sat, 1 Aug 2020 06:31:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 42644 <at> debbugs.gnu.org:


Received: (at 42644) by debbugs.gnu.org; 1 Aug 2020 10:02:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 01 06:02:56 2020
Received: from localhost ([127.0.0.1]:39174 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k1oLw-0000Mq-2H
	for submit <at> debbugs.gnu.org; Sat, 01 Aug 2020 06:02:56 -0400
Received: from mail-yb1-f174.google.com ([209.85.219.174]:37641)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1k1oLq-0000MN-Ch
 for 42644 <at> debbugs.gnu.org; Sat, 01 Aug 2020 06:02:54 -0400
Received: by mail-yb1-f174.google.com with SMTP id e14so3685193ybf.4
 for <42644 <at> debbugs.gnu.org>; Sat, 01 Aug 2020 03:02:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:in-reply-to:references:mime-version:date:message-id:subject:to;
 bh=hNUx6V58bCFKKC2RAhJvIxkDvAGrctt9dhf3ovp9p2o=;
 b=Eghg/UG5rp51LVzYZkDdzzvG4AqzUfJMupyK0p/BaWRS/S4K/5YzA14Sh4rIXtTLNo
 +ZUtGEmgsVPuWCKQV+tmSEIDqiIje/9Q/PWO+2AJSyibPf9ABtg95hKblpjGrmWlmS8I
 opU1yphppP4SYU3+7x6yhLIVS459fmMVY3ZnkK6Yt75zsrU6IBw08qyxBpoWJA2ZYqsT
 RsSVyZ4dPmlljmm2Mdh570qg28bLCW4q+pwJ939VQoK7gZ0UV8bkf7d4qgXUNp05Jp8p
 GViGbP4NMH/Yl3awdlt5k/CRci95jqPgOhIfdJl7+cuHxZzJLWi8va/hn5ShE1q8JlX/
 TbKw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:in-reply-to:references:mime-version:date
 :message-id:subject:to;
 bh=hNUx6V58bCFKKC2RAhJvIxkDvAGrctt9dhf3ovp9p2o=;
 b=XKCFe3+EU4ZTtVElTUH5tUkDHlnnnss5B5ZktKLw5yHifwucd4PaJZJoCdGqw/TKpL
 tLNVjbNx5iUEvd6lYpkqvbaF25XgPwNFtrBu82Fl/4kvlunZvaEqyaiuG6QMJ1Lm9Gh9
 xkgpP/hwkuMoHQaybsZKm9PuMpMpAdmv120ssl4s7dKL6dG09V4RsIXontORIBHYw2Gp
 y5pjO0r0DOteyPLNMK/bF79leZKBLXzUhCm+VYpjHrtBv7BkilKcXpYRfRigxQHDk8+e
 x8f0tC9v0QsJS2g7zqmdwhAA8WiVYGFJ+6v1nVDsSo+n91RglK2nE8pa/E22dlUTssY9
 3EFA==
X-Gm-Message-State: AOAM533MHbmpVT8OnNHB/U7CNgY5Wa+rLbPCIikQWGaKqoGTV+7WBsBY
 pwfBK8JkTYbHoTs0GybWoENFATi6o5Lh7Ejp60k=
X-Google-Smtp-Source: ABdhPJwErEbts8lVRJtAztXF7VWNF5ZeNvPXeYfbR2d00JBAUBVmtrhtdTi8xmdDqjYM5lPW/c/1ikin6qr7G1E+kQU=
X-Received: by 2002:a25:7007:: with SMTP id l7mr9140828ybc.85.1596276164701;
 Sat, 01 Aug 2020 03:02:44 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Sat, 1 Aug 2020 03:02:44 -0700
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <87tuxmkhd9.fsf@HIDDEN>
References: <87tuxmkhd9.fsf@HIDDEN>
MIME-Version: 1.0
Date: Sat, 1 Aug 2020 03:02:44 -0700
Message-ID: <CADwFkmmE0WkmuNTJZv8V_d9PLhF5cZy5NbAhCFAitgHO_qjdAQ@HIDDEN>
Subject: Re: bug#42644: 28.0.50; Please let max and min accept zero arguments
To: Michael Heerdegen <michael_heerdegen@HIDDEN>, 42644 <at> debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 42644
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Michael Heerdegen <michael_heerdegen@HIDDEN> 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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#42644; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Aug 2020 06:30:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 01 02:30:53 2020
Received: from localhost ([127.0.0.1]:39003 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k1l2j-0003ed-9a
	for submit <at> debbugs.gnu.org; Sat, 01 Aug 2020 02:30:53 -0400
Received: from lists.gnu.org ([209.51.188.17]:59598)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1k1l2h-0003eV-Uc
 for submit <at> debbugs.gnu.org; Sat, 01 Aug 2020 02:30:52 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:37696)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1k1l2f-0006Js-Ax
 for bug-gnu-emacs@HIDDEN; Sat, 01 Aug 2020 02:30:49 -0400
Received: from mout.web.de ([212.227.15.14]:41401)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1k1l2c-0002Hj-Mh
 for bug-gnu-emacs@HIDDEN; Sat, 01 Aug 2020 02:30:49 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de;
 s=dbaedf251592; t=1596263443;
 bh=6g0Al+rHK4UHLx32+7f2mAqrcMWJ1fqQzOzMQEBQzRc=;
 h=X-UI-Sender-Class:From:To:Subject:Date;
 b=RXMYyehxKLE3kgXIw52mjJoKOEQgUd9PdihlzuhItyCsqTri7fbgXEvBvHekuQEwf
 uzF3aeGK/kXuqwELGa0pjKgvLMIifLYOoZDCxvz2nXZrN8q1to6tBOqqtgjdKDqfCI
 Aw9IEIMuSqDumBEH/xNuTSgof9xvnC0nBBmbonBQ=
X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9
Received: from drachen.dragon ([92.76.215.78]) by smtp.web.de (mrweb002
 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Lj2XW-1kcjUK47lm-00dJcN for
 <bug-gnu-emacs@HIDDEN>; Sat, 01 Aug 2020 08:30:43 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 28.0.50; Please let max and min accept zero arguments
Date: Sat, 01 Aug 2020 08:30:42 +0200
Message-ID: <87tuxmkhd9.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:3WX3/NNygbrP+MR/5ZhtwGBo5Je1iiqxku/M4FCSKkDvLpnBm10
 yr5RVFZlSUbXWt2twe3Ta39HwJYo/5B6T+1a6UMGQfm8T6P+JDCLmfX6y6msW9i5bS0CupU
 YE4Ei521oJ6eyKK46ynfLBAoZYQSXFgE/HS4d88Ls9rgGwPLBzw5APa7zIYA0j5tzsBsLaG
 csnG4EJ/r/DRT2roPU40g==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:QdXEuBK8ufM=:8Ctadmeiyf3J4z1e+qnZ6b
 b/lNa40cLKr7s9/rQ4M5zHoIZdq1NBhyMiSCQK0iS6B3Ka2kdvp2TpQGFoApPIgR8m+hrrxBb
 82jVot2EmqpYYYtlZVj+Vl+irabh3o1ds0HtupMP5NuIhBOOGXHMeZtMm63TEtUBGp0Z++UOV
 rCkKc4XSoIiNvFEX6nbObJT7kKZV1AUWKanBMGrIcQb92v5736s9y9pQBnDGOrzU0E5W6ySuG
 Be6doAH+iZaTaN//P0aOoWnbyM4imNw09RjDatGGOUkfxY72gwvCbNDnW56pE4I0jCU8slHJ9
 yPY3YVvUdDbjzjTwUsRIvhD2ypNhagxE4W8SC0fE780cX1raaMFuZx4hHtqaewChfIUjKbMVk
 bXi9T5aY6MP7+5aXoUPDl3Ka9cNudwCSjQcU1ejfq921W/iIlQZcUqbJ+6rPfkuW2QY9Dqthl
 HJVBo1SUdwZuMG+7LHSiPD2lOp67lQMUczzPCg7006VL3dCfSgWekxpgCj0O/d+H1nTqILLoX
 VA5W+Xsft4oRscbKWnr0w+RNLaWs7kyj9mKi/jxsT7iQGh1BWfU7Vz8s/BxIuayQl9WzfQnjp
 Hgg8N497aRF4L2PNAvG652JWw9agvEHTYBAxZOJq0eeZe13FVmNXk2g6ujiM92ozazhdvpZxe
 AlhjrRjoBKSDsp4L5FKSQZl2etRPHqPuVau2EA7kG250KivKbsop/RvYiV2wP+JGwxg9ZtIXn
 MyxTmL40TRWlljitdhUe3qZawDH/kvrC7nR7zgVsla+kGnoZ4n9MNBoNgvwGoHfEIm7RVS2Q0
 vmX/ijfJOk6cpvB1uJOQu89bY2eqH39IrD+22NihaJ33D425xsQQEBQHKHgGI8Jw6R3JMEHzp
 mNxI3XLgqzmxwfs9WlAWvVMAsRKGiKZ2hq2z/6sgfPh04TS8mzYHvKfBsMEA9PNFHizv0fyI9
 IB8oAZLEPZOamaYsOvwzr3g/N7vD3nttyeB0U3ekRvFM4ic2VMim5bv4hn6ucoEYTuZvAVQif
 6IsUVUvGnhNIrps+kbZHHuWczIy3hGPxIMKdCjslTuIiD+ZYa0BIXYMJRFNiqUoWSssZrkuwI
 cAzl1VCvrjmL3fDmC6HaL5qlda4ZPHVbjip6E0O413VtK6O6G78GrfMx/+3yCblAOoSEdASYy
 UFSnOPgM+R0aZfxycncSXjyLPVqCNIM913z+h8ETVtGqdLErTTlEgAeTYfYz2Nebm3AEMCS85
 1cfUa4YUFPTSKGjOqOb7iTadmV20916QejBg5MQ==
Received-SPF: pass client-ip=212.227.15.14;
 envelope-from=michael_heerdegen@HIDDEN; helo=mout.web.de
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/01 02:30:43
X-ACL-Warn: Detected OS   = Linux 2.2.x-3.x [generic]
X-Spam_score_int: -37
X-Spam_score: -3.8
X-Spam_bar: ---
X-Spam_report: (-3.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.1 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)


Hello,

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.

`seq-max' and `seq-min' should also support it.

TIA,

Michael.


In GNU Emacs 28.0.50 (build 161, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0)
 of 2020-07-31 built on drachen
Repository revision: 26cf87416ffec74f4ffb05f652c927b75f5ee482
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12008000
System Description: Debian GNU/Linux bullseye/sid





Acknowledgement sent to Michael Heerdegen <michael_heerdegen@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#42644; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 1 Aug 2020 10:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.