From: Marnen Laibow-Koser Date: 2009-11-09T22:51:55+09:00 Subject: Re: Ruby doesn't implement x++ for Fixnum's because ??? Seebs wrote: > On 2009-11-09, Marnen Laibow-Koser wrote: >> Where's the benefit? What is some actual Ruby code that would be >> improved by these constructs? > > blahblahblah.each do |args| > lots of stuff lots of stuff > if condition > count += 1 > end > end > > I'd rather see "++count". It's easier for me to read. Would you? Or would you rather see count = blahblahblah.count do |args| lots_of_stuff condition end ? > > -s Best, -- Marnen Laibow-Koser http://www.marnen.org marnen@marnen.org -- Posted via http://www.ruby-forum.com/.