From: Robert Dober Date: 2007-02-20T04:08:21+09:00 Subject: Re: For loops don't count down On 2/19/07, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: For loops don't count down" > on Tue, 20 Feb 2007 02:45:27 +0900, Daniel Schierbeck writes: > > |Is there a necessity for a range such as 5..0 to be empty? > > 5..1 is the easiest case, No it is not, how could we distinguish between a "reversed" range and an "empty" range. but what if "abz".."abc" where we couldn't > define reasonable String#pred. Just raise error? With all due respect if we have a reasonable String#succ we can define a reasonable String#pred. > > I'd rather swap start and end for each operation, if empty iteration > is not wanted, until we have reverse iteration for generic case. > > matz. > > Cheers Robert -- We have not succeeded in answering all of our questions. In fact, in some ways, we are more confused than ever. But we feel we are confused on a higher level and about more important things. -Anonymous