Re: Proposal: clamp

From: Date: Wed, 23 Jun 2021 14:11:14 +0000
Subject: Re: Proposal: clamp
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-115062@lists.php.net to get a copy of this message
> On 23 Jun 2021, at 2:25 AM, Kim Hallberg <hallbergkim@gmail.com> wrote: > > Greetings internals, > > I present to you a proposal for a new basic math function: clamp. > > function clamp(int|float $num, int|float $min, int|float $max): int|float {} Instead of answering each response individually I’ll 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 me karma for the username: thinkverse on the wiki. A pull request into source will be submitted right after RFC has been written. Thank you, Kim.

« previous php.internals (#115062) next »