guard icon indicating copy to clipboard operation
guard copied to clipboard

Document inclusivity of InRange

Open kjkrum opened this issue 3 years ago • 1 comments

It would be nice if the doc comments for InRange mentioned inclusivity. Without reading the code, it seems ambiguous to me whether it works like SQL between (min <= x <= max) or the way limits are often expressed with zero-based counters (min <= x < max).

kjkrum avatar Jun 20 '21 01:06 kjkrum

I see your point. The argument docs imply inclusivity by stating the value represents "...min/max value the argument is allowed to have", but yeah I guess it wouldn't hurt to be more explicit in the summary as well. Thanks for the suggestion!

Screenshot 2021-12-27 at 15 05 36

safakgur avatar Dec 27 '21 15:12 safakgur

Hi @kjkrum, I'm retiring Guard - I apologise for any inconvenience, and thank you for all the support. The readme has details.

safakgur avatar Jul 18 '23 04:07 safakgur