From: Tom Werner Date: 2006-11-11T04:29:14+09:00 Subject: Re: Overwriting the Integer class for method succ! (instead of just succ) paul wrote: > Hi all, > > A little thing that is bugging me is that I don't know how to do a > "count++" (like in Java) in Ruby. The rubyish way to do count++ is count += 1 Many Ruby first-timers are disconcerted by the lack of the ++ operator, as I was myself. After some reflection and experience with the language, I no longer miss it. It's one extra keystroke (or three if you pad with spaces like I do), but it forever eliminates the confusion of ++var vs. var++. Once you accept that there's no ++ syntactic sugar in Ruby and embrace += and -=, I think you'll be a much happier coder. Tom