From: Robert Dober Date: 2008-08-31T20:33:37+09:00 Subject: Re: Please don't flame me...why is there no "++" in Ruby aga On Thu, Aug 28, 2008 at 11:56 PM, John Pritchard-williams wrote: > >> ... and as Integers are immutable ++ cannot change the underlying object.. > > That makes sense : and I guess 'x++'=> x+1 would be just confusing.. > > I mean like this: > > a+=1 (which of course IS valid) > > a++ - could in theory mean "Take the value pointed at by a currently, > increment it and re-point 'a' at that new object"... > > but then people might abuse it and not realize (as I hadn't really) that > Integers are immutable...and give the garbage collector a really hard > time... Do you mean, people should not write a = a + 1 because of GC issues?????? Robert -- C'est véritablement utile puisque c'est joli. Antoine de Saint Exupéry