> On 28 Jun 2021, at 11:16 AM, Nikita Popov wrote:
>
> The RFC is missing a precise description of how this function works with NaN
> and negative zero. The expected behavior is that if min or max are NaN, an
> exception is thrown, if num if NaN then NaN is returned, and the behavior wrt
> neg
> On 24 Jun 2021, at 1:50 AM, tyson andre wrote:
>
> So I think the major objections are that:
>
> 1. This is easy to implement in userland and there's negligible performance
> benefit
> (in code that is a performance sensitive loop, it may still be worse
> compared to `$num < $min ? $min :
On Wed, Jun 23, 2021 at 8:43 PM Kim Hallberg wrote:
> Hello internals,
>
> The RFC for the clamp function is now open and under discussion, you now
> have 2 weeks
> to discuss, suggest improvements and open issues before voting is
> considered.
>
> Any and all feedback is welcomed.
>
> The RFC is
why stop with clamp? add wrap too. imagine being against clamp but ok with
floor and ceiling. lets make our math lib even better.
> On Jun 24, 2021, at 7:59 AM, Pierre wrote:
>
> Le 24/06/2021 à 11:44, Michał Marcin Brzuchalski a écrit :
>> I get an impression that we constantly add things into standard library
>> which are from a language perspective irrelevant
>> and that all could be developed in userland with no harm
Le 24/06/2021 à 11:44, Michał Marcin Brzuchalski a écrit :
I get an impression that we constantly add things into standard library
which are from a language perspective irrelevant
and that all could be developed in userland with no harm.
Cheers,
--
Michał Marcin Brzuchalski
Hello,
I respectfu
czw., 24 cze 2021 o 02:15 tyson andre
napisał(a):
> Hello Kim Hallberg,
>
> > The RFC for the clamp function is now open and under discussion, you now
> have 2 weeks
> > to discuss, suggest improvements and open issues before voting is
> considered.
>
>
> From https://wiki.php.net/rfc/clamp -
>
>
Hello Kim Hallberg,
> The RFC for the clamp function is now open and under discussion, you now have
> 2 weeks
> to discuss, suggest improvements and open issues before voting is considered.
>From https://wiki.php.net/rfc/clamp -
> Current userland implementations are handled in several ways,
Hi Kim Hallberg,
> The RFC for the clamp function is now open and under discussion, you now have
> 2 weeks
> to discuss, suggest improvements and open issues before voting is considered.
>
> Any and all feedback is welcomed.
>
> The RFC is available for viewing here: https://wiki.php.net/rfc/c