Hi

On 8/29/25 04:42, Morgan wrote:
Another part of the argument is "complexity", as brought up in the
original proposal. I notice that the offered implementation of this
function relies entirely on zend_compare().

I'm not finding the word “complexity” in https://wiki.php.net/rfc/clamp or https://externals.io/message/115050. Can you link to the message you are referring to?

reasons. The extra complication may not be worth it if there are only
two or three values being compared (long and double are the first types
zend_compare tries).

I'm positive that the benchmarks will answer that question.

Best regards
Tim Düsterhus

Reply via email to