From: "John W. Kennedy" Date: 2004-10-02T00:00:00+09:00 Subject: Re: Range syntax theory Bill Atkins wrote: > I agree. Having a separate operator for exclusive ranges just > complicates things. Why not just have '..' and the user can specify > either start..end or start..(end + 1) ? You mean start..(end-1) -- but apart from that, because start...end is faster than start..(end-1) unless the compiler recognizes start..(end-1) as a special case and translates it to start...end. And since programmers typically don't know whether the compiler does that special case or not, many programmers will take the time to "optimize" with endminus1=end-1 and then use start..endminus1. All of which can be eliminated simply by having the exclusive range in the first place. -- John W. Kennedy "Information is light. Information, in itself, about anything, is light." -- Tom Stoppard. "Night and Day"