Re: Proposal: clamp

From: Date: Wed, 23 Jun 2021 08:36:31 +0000
Subject: Re: Proposal: clamp
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-115055@lists.php.net to get a copy of this message
Hi Kim > I present to you a proposal for a new basic math function: clamp. > ... > What are your opinions on this function? I for one think this is a good candidate for PHPs standard library. It's simple, unopinionated and standardized in other languages. Even though it's simple to implement in userland (as many other internal functions would be) there's no good reason to require users to implement it themselves or require a package for simple functions. +1 from me. Ilija

« previous php.internals (#115055) next »