From: Sean Chittenden Date: 2002-04-28T08:45:32+09:00 Subject: Re: Numberic#prev > |*) String#prev is controversial with minimal gain (though a fun > | exercise in Ruby skilz) > > Agreed, > > |*) Integer#prev is well defined and an easy target > > Yes. > > |*) No one seems to think Integer#prev is a bad idea > > It's not bad, but useless. "succ" is useful with polymorphism as used > in Range, but no other non-numeric class defines "prev", there's no > benefit. what's wrong with "n-1"? Heh, that's a better question than I thought... after benchmarking that against HEAD: almost nothing. I looks like it's marginally harder on the GC to use i - 1, but nothing to write home about (few MB with 1M objects). Thanks for the reality check. :~) -sc -- Sean Chittenden