--0016e64b901a3630dd047791bd8e Content-Type: text/plain; charset=ISO-8859-1 On Wed, Nov 4, 2009 at 1:46 PM, Marnen Laibow-Koser <marnen / marnen.org>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 ounterInMemcacheOrSomething.new :foobar m++ -- Tony Arcieri Medioh/Nagravision --0016e64b901a3630dd047791bd8e--