3 ms·
Sure, and another option would be for a range "class" to do the clamping: Range(min, max).clamp(x) but this turns to a conversation about syntax, and not
by geocar 9y ago
Sure, and another option would be for a range "class" to do the clamping:
Range(min, max).clamp(x)
but this turns to a conversation about syntax, and not about designing API so that we guide our users towards success.