From: Zach Dennis Date: 2004-09-30T23:41:55+09:00 Subject: Re: Range syntax theory Peter Hickman wrote: > > I find the ... notation useful when the upper limit is the size of > something but the max index is one less. > > This > > (0...x.size).each { blah } > > reads better than > > (0..(x.size - 1)).each { blah } > > You added more syntax then needed. "-" has higher precendence then "...". (0..x.size-1).each That appears quite clean and it only one more character then: (0...x.size).each Zach