From: Gavin Sinclair Date: 2009-11-05T19:40:11+09:00 Subject: Re: Ruby doesn't implement x++ for Fixnum's because ??? On Nov 5, 4:11 am, Tony Arcieri wrote: > > I think you're missing why ++ could be useful, and it's precisely because > Ruby is a "21st century language" > > The ++ operator, far more than just being syntactic sugar for +=1, would > allow you to send an "increment" message to any object, which would change > its value in place, i.e. > >   def ++ >     incrementing_logic_goes_here >   end > > I could see this as being handy What's wrong with def inc incrementing_logic_goes_here end How is that any different?