On 2025-08-23 05:29, Kyle Katarn wrote:
Also from my point of view, min($max, max($min, $value)) has a counter- intuitive reading when used to clamp a value.
Well, that's trivial to deal with: min(max($min, $value), $max));
On 2025-08-23 05:29, Kyle Katarn wrote:
Also from my point of view, min($max, max($min, $value)) has a counter- intuitive reading when used to clamp a value.
Well, that's trivial to deal with: min(max($min, $value), $max));