Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115062 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 34584 invoked from network); 23 Jun 2021 13:52:47 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 23 Jun 2021 13:52:47 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3805B1804F3 for ; Wed, 23 Jun 2021 07:11:19 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 23 Jun 2021 07:11:18 -0700 (PDT) Received: by mail-lj1-f176.google.com with SMTP id f13so3171098ljp.10 for ; Wed, 23 Jun 2021 07:11:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=EN0foqhloo4QFxSg1ZrntQtHoO5T6xxS7dsMmLP9CRo=; b=LuAjIlpaU9A+QYjKYyl8g1jXYfUhHii2Of9kF7XMK9dGg0GcBbVmmV8xrrRv/W5nsx Cf31Nl1IULQd8NOLCqxX7tbDFAgUfMpQEaKBn4gxVK1TAmsjd5INsl/q/csorlppAKZ5 SJEkMsL5MZGq2yDAVguH8G00rTqDKRGNx9I4vVPwOvtXYNYEO5aM+9ahylB2+5Fkzow9 aDHBKbUT6NU4QZmq4D2dmFMGGgYZMA/voqqraL5JRGog/kUOAL2ulYML6YBg96AhnefC hoYO7ODveLsePTq7a4ezaoMl/AumN8Inoe08UiNcRKoGReG91+OC09iarNs6x9o2wUp6 lOew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=EN0foqhloo4QFxSg1ZrntQtHoO5T6xxS7dsMmLP9CRo=; b=YR9N+6SONKZoZflZ/rB1g3JIeSye93+4Ym1lt0JuIl1g6VdhptpQccZ3f1vyplLx/n IfhHEaZuEb8YHfTZx3RJgSvK4Y4e2LgktnvPlh3/XpjfaZ3XyD3qEhIF3oleZs7Nj+aQ NhMY8vmD9o7r3bnauz0LsYdDkyPI9+mfYQ2/hKPiLCGbgx4HFb/ZhZob2DZVv3w7ZZm9 CZ25z3bIVNOwgNbvptRdaWiyJoX26UqDTAnbj6zyosx819DKvMAdWlWixzd7epiWZIsU cErthF9tE87A5muZvurrVwHidQHI6k/IFs/R41ZuVsZv3VyfcXzApm82SECmDPQHBGY6 9Fsw== X-Gm-Message-State: AOAM5306qRjRH9SgO+/YHZXQ6xN4A6/b1MlmwUTfNGGW3BzLrsA7BMuu 6hP0gN4siD0MtkdPDprE2cvFL6O+bgA= X-Google-Smtp-Source: ABdhPJyA7E7ibPY2dqlBw/o4o488F63ioZftYiLQrOoDo7z3FRmd/N7cFsdiFzE9vz7MFmV1ootCnA== X-Received: by 2002:a2e:2c19:: with SMTP id s25mr8112311ljs.361.1624457476874; Wed, 23 Jun 2021 07:11:16 -0700 (PDT) Received: from [192.168.2.137] (81-233-163-178-no84.tbcn.telia.com. [81.233.163.178]) by smtp.gmail.com with ESMTPSA id s16sm3881lfp.106.2021.06.23.07.11.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Jun 2021 07:11:16 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.7\)) Date: Wed, 23 Jun 2021 16:11:14 +0200 References: <1014AE76-B3D5-48F7-A0F0-B8E3327123A2@gmail.com> To: internals@lists.php.net In-Reply-To: <1014AE76-B3D5-48F7-A0F0-B8E3327123A2@gmail.com> Message-ID: X-Mailer: Apple Mail (2.3445.9.7) Subject: Re: Proposal: clamp From: hallbergkim@gmail.com (Kim Hallberg) > On 23 Jun 2021, at 2:25 AM, Kim Hallberg = wrote: >=20 > Greetings internals, >=20 > I present to you a proposal for a new basic math function: clamp. >=20 > function clamp(int|float $num, int|float $min, int|float $max): = int|float {} Instead of answering each response individually I=E2=80=99ll post a = reply here instead. Since the majority seems to have a pretty positive position on this = proposal. I am moving ahead with an RFC for this, and am now requesting RFC karma. If anyone would like to grant me the privilege to create this RFC you = can grant=20 me karma for the username: thinkverse on the wiki. A pull request into = source=20 will be submitted right after RFC has been written. Thank you, Kim.=