From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#42644: 28.0.50; Please let max and min accept zero arguments Date: Sat, 1 Aug 2020 03:02:44 -0700 Message-ID: References: <87tuxmkhd9.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38597"; mail-complaints-to="usenet@ciao.gmane.io" To: Michael Heerdegen , 42644@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 01 12:03:11 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 1k1oM9-0009x6-MH for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Aug 2020 12:03:09 +0200 Original-Received: from localhost ([::1]:36212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k1oM8-0003vB-PL for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Aug 2020 06:03:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k1oM2-0003v3-OP for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2020 06:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55861) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k1oM2-00083v-FM for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2020 06:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k1oM2-0000NI-8I for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2020 06:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Aug 2020 10:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42644 X-GNU-PR-Package: emacs Original-Received: via spool by 42644-submit@debbugs.gnu.org id=B42644.15962761761421 (code B ref 42644); Sat, 01 Aug 2020 10:03:02 +0000 Original-Received: (at 42644) by debbugs.gnu.org; 1 Aug 2020 10:02:56 +0000 Original-Received: from localhost ([127.0.0.1]:39174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1oLw-0000Mq-2H for submit@debbugs.gnu.org; Sat, 01 Aug 2020 06:02:56 -0400 Original-Received: from mail-yb1-f174.google.com ([209.85.219.174]:37641) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1oLq-0000MN-Ch for 42644@debbugs.gnu.org; Sat, 01 Aug 2020 06:02:54 -0400 Original-Received: by mail-yb1-f174.google.com with SMTP id e14so3685193ybf.4 for <42644@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) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 1 Aug 2020 03:02:44 -0700 In-Reply-To: <87tuxmkhd9.fsf@web.de> 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:183753 Archived-At: Michael Heerdegen 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