On 2/19/07, [email protected] [email protected] wrote:
Hi,
but what if “abz”…“abc” where we couldn’t
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.
Cheers
Robert
On 2/19/07, Robert D. [email protected] wrote:
On 2/19/07, [email protected] [email protected] wrote:
Hi –
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.
Cheers
Robert
Done.
But did you check it out?
Two facts:
It is 5 years old, and Matz said that Integer#prev was maybe not a good
idea.
5 years later he has changed his mind and accepted the RCR about
Integer#pred.
And I am not at all talking about that!!!
Am I as confusing as confused? [Gotta change the signature I guess]
Well just forget it for now I might have messed this thread up…
Cheers
Robert
Hi –
On Tue, 20 Feb 2007, Robert D. wrote:
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
On 2/19/07, [email protected] [email protected] wrote:

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”
I thought it was “a” 
“10”.pred # => ??
It would have been “09”
This is bad and there is no solution, good point again.
I guess I will deprecate String#succ in my programs
Thx for explaining it to me.
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)
Robert