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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php