Perl Monk, Perl Meditation | |
PerlMonks |
Re^4: [OT] Python to Perl.by LanX (Saint) |
on Jun 16, 2018 at 23:15 UTC ( [id://1216797]=note: print w/replies, xml ) | Need Help?? |
IMHO the main advantage of these kind of ranges is that you can easily partition ranges in smaller ones: [0..9[ = [0..3[ + [3..6[ + [6..9[ (pseudocode!) This "scales" well (in a mathematical sense) without needing to add or subtract at the edges, hence less error prone.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|