# Timeline for Range check operator

### Current License: CC BY-SA 4.0

6 events
when toggle format what by license comment
Dec 11 '19 at 14:23 comment Shorter tentative one-liner: for $i { return unless ($_ >= $min &&$_ <= $max ).so }; Dec 11 '19 at 13:53 comment Tentative one-liner: for$i { return (False) unless ( $_ >=$min && $_ <=$max ). };
Dec 11 '19 at 3:17 comment Agreed and incorporated along with parameter order and naming as well.
Dec 10 '19 at 19:16 comment I think that $a >=$b && $b <=$c is more efficient because if the first part evaluates to false, the second part $b <=$c does not have to be evaluated at all. The & operator, on the other hand, evaluates both sides, always. At least that's what most of the C-based languages do.
Dec 10 '19 at 17:12 comment Definitely food for thought! I looked at junction but foud the docs to opaque to understand. The variable name re-ordering hadn't occurred to me, but likewise a good idea. Not at all sure what you mean by the first comment? I'd still need to convert the value(s) to True and False and then check for first false effectively doing an evaluation on any of them…
Dec 10 '19 at 16:44 history answered