From: Austin Ziegler Date: 2004-09-30T22:37:27+09:00 Subject: Re: Range syntax theory On Thu, 30 Sep 2004 22:30:51 +0900, Zach Dennis wrote: > How range operators work seems sort of backwards to me. It would appear > as if the "..." (three dots) would be the inclusive one, including the > last value and the ".." (two dots) would be exclusive and exclude the > last value. > > Am I off in my own little world here or have others pondered this? > (Perhaps it has been brought up before?) I am not requesting a change on > this, I am merely pointing out what seems unnatural in a very natural > language. It's the distinction between 0..5 == [0, 5] # mathematical notation and 0...5 == [0, 5) # mathematical notation In part, this is something that Ruby inherits -- I *think* -- from Perl, which uses the .. and ... in this way. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca : as of this email, I have [ 6 ] Gmail invitations