From: Brian Candler Date: 2009-08-05T20:14:45+09:00 Subject: Re: Bizarre Range behavior Yukihiro Matsumoto wrote: > What if I sprinkle more magic to the language and change String#upto > to generate numerical sequences when all characters in edges are > digits, so that > > irb> ("2".."19").to_a > => ["2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", > "14", "15", "16", "17", "18", "19"] > irb> ("2"..."20").to_a > => ["2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", > "14", "15", "16", "17", "18", "19", "20"] > > Any opinion? -1 for added complexity with little benefit -- Posted via http://www.ruby-forum.com/.