From: Markus Date: 2004-10-01T00:09:28+09:00 Subject: Re: Range syntax theory > 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. It must be something pre-perl; at least, I was using this convention (but don't recall where I picked it up) long before coming to ruby. I know it wasn't perl because I don't know perl. -- Markus P.S. The notation is useful; (as others have pointed out) x...y is NOT a synonym for x..y-1, although the effect is the same when you're dealing with integers.