Hacker News new | ask | show | jobs
by userbinator 2751 days ago
The bigger problem here is that if you say...

Let's say that I want to check that something is between 5 and 10.

...you did not specify explicitly whether the ends are inclusive/exclusive, and IMHO that (and the off-by-one errors it causes) is far more important.

Related: I've more than once had to ask someone whether "I will be away from 23 to 27" was inclusive or exclusive for the 27, because e.g. "meeting from 10 to 11" usually is exclusive at the upper end.