From: "Mills Thomas (app1tam)" Date: 2004-10-01T00:48:49+09:00 Subject: Re: Range syntax theory Okay, maybe we think of it this way. '..' is a club. '...' is a club, with a bouncer at the door. Or, '..' is a path. '...' has a marble tripping up the last entry and pushing it off the path. Or, '..' represents a 2-dimensions (a vector). And '...' represents two dimensions with a daemon kicking the last entry into its own exclusion dimension (a plane) to live forever, planely in lonely solitude. Or, maybe I should quit now...Drew -> -----Original Message----- -> From: Zach Dennis [mailto:zdennis@mktec.com] -> Sent: Thursday, September 30, 2004 9:31 AM -> To: ruby-talk@ruby-lang.org -> Subject: Range syntax theory -> -> -> I have been thinking lately about rangess and I will give -> you the two -> different range operators and what comes to mind first. -> -> Operator One: .. (two dots) -> Example: 1..5 -> What comes to mind: Exclusive -> How It Works: Inclusive (the last number 5, is included) -> -> Operator Two: ... (three dots) -> Example: 1...5 -> What comes to mind: Inclusive -> How It Works: Exclusive (the last number 5, is excluded) -> -> 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. -> -> Zach ->