From: Tony Arcieri Date: 2009-11-05T05:48:56+09:00 Subject: Re: Ruby doesn't implement x++ for Fixnum's because ??? --0016e64b901a3630dd047791bd8e Content-Type: text/plain; charset=ISO-8859-1 On Wed, Nov 4, 2009 at 1:46 PM, Marnen Laibow-Koser wrote: > This is unidiomatic Ruby. In fact, it's becoming clear to me that just > about *any* use case for postfix ++ is unidiomatic Ruby. The cleanest > way *in Ruby* of doing what you did would be > > (1..10).each {|i| puts i} > > Incrementing is handled under the hood. > What if it's not? m = CounterInMemcacheOrSomething.new :foobar m++ -- Tony Arcieri Medioh/Nagravision --0016e64b901a3630dd047791bd8e--