4 ms·
Once you've seen this a few dozen times, you instantly parse it as "clamp(num, min, max)"
by aldanor 6y ago
Once you've seen this a few dozen times, you instantly parse it as "clamp(num, min, max)"
- hombre_fatal 6y agoDid a bunch of coding bootcamps just begin session or something? I don't understand the comments here treating it like it's so hard to write and verify that it needs a completely different, slower, less direct, cutesy implementation.
- aldanor 6y agoI don't understand the explosion of comments here either. I was just saying for myself, it's a trivial construct and very commonly encountered.