From: Scott Briggs Date: 2009-08-17T22:46:25+09:00 Subject: Re: Bizarre Range behavior Piyush Ranjan wrote: > +1 for that. and -1 for the change. > > It just makes the developer look too stupid. Can't we let the developers > understand the difference between a string and an integer ? If it was 20 years ago, I'd understand this sentiment. What I don't understand is why programming languages seem to insist on using semantics that don't adapt to the natural ways that humans interact or think. It's almost as if people prefer to fight against the inevitable evolution of programming languages. In this case, your only argument for not introducing this "magic" is because people need to understand the difference between a string and an integer, why is that so critical in this case? There's no ambiguity in "2".."11". There are a lot of constructs in ruby that make it much easier to use and understand from a natural language point of view, one of the big strengths of ruby, and this in turn makes it more accessible to people who are interested in programming and not getting bogged down in the minutiae of why "2" is greater than "11". > > > I vote against. If people want numeric ranges, it's their job to use -- Posted via http://www.ruby-forum.com/.