From: dblack@... Date: 2007-02-20T06:35:59+09:00 Subject: Re: For loops don't count down Hi -- On Tue, 20 Feb 2007, Robert Dober wrote: >> > I do not like the lack of symmetry it just feels not right. >> >> You should adopt my Ruby slogan: >> >> Ruby: the triumph of balance over symmetry. >> >> :-) > It's easy when you are with the majority, do you remember the thread > about "receiver" though ;) [ I still think you are right about that > one] > I kind of hope to be right with this one, but I am checking the thread > now. One example is: "09".succ # => "10" "9".succ # => "10" "10".pred # => ?? Since it's not a one-to-one mapping, the only way to go backwards is to come up with arbitrary rules. That doesn't mean it's a bad idea, but there's definitely no single clear way for it to work. David -- Q. What is THE Ruby book for Rails developers? A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black) (See what readers are saying! http://www.rubypal.com/r4rrevs.pdf) Q. Where can I get Ruby/Rails on-site training, consulting, coaching? A. Ruby Power and Light, LLC (http://www.rubypal.com)