From: Joshua Ballanco Date: 2009-11-10T14:42:04+09:00 Subject: Re: Ruby doesn't implement x++ for Fixnum's because ??? On Nov 9, 2009, at 6:35 AM, Seebs wrote: > On 2009-11-09, Marnen Laibow-Koser wrote: >> Would you? Or would you rather see >> count = blahblahblah.count do |args| >> lots_of_stuff >> condition >> end > > Huh! That is prettier. Didn't know it existed. > > But in general, basically, any place where we have a += 1, I'd prefer ++. > > And I am pretty sure that +=1 is occasionally useful. ...and *this* is where, in the long long history of this thread, where I finally realized the *real* issue here. Let's take Rails... rails, activerecord, activeresource, actionpack, actionmailer, and activesupport... 106,518 lines of Ruby code 66 instances of foo += 1 (or foo += 100) That's 0.06% of the lines of code! If you're writing Ruby code and your fraction is higher, chances are you're "doing it wrong". Cheers, Josh