From: Robert Dober Date: 2009-08-13T20:16:17+09:00 Subject: Re: Background on why Ruby doesn't support ++ On Thu, Aug 13, 2009 at 11:31 AM, Robert Klemme wrote: > 2009/8/13 Shajith Chacko : >> On Wed, Aug 12, 2009 at 11:20 PM, Adam Lauper wrote: >>> Anyone know the history on this deliberate omission? >> >> Matz addressed this in ruby-talk 2710: >> >> http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/2710 > > Basically it is a consequence of the decision to make integers > immutable which makes assignment necessary for a variable which is > incremented. Makes sense, though strictly speaking x++ could be syntactic sugar for x+=1 or x =x +1 but this would probably be very confusing for many folks for the very reason you gave. Cheers Robert -- module Kernel alias_method :ë, :lambda end