From: Dave Thomas Date: 2001-08-24T05:29:10+09:00 Subject: [ruby-talk:20206] Re: ++ Operator matz@ruby-lang.org (Yukihiro Matsumoto) writes: > Hi, > > In message "[ruby-talk:20191] Re: ++ Operator" > on 01/08/24, Guillaume Cottenceau writes: > > |Yet, from the "parsing" point of view (excuse the potential improper use > |of this term), if `counter += 1' is effectively shorthand for `counter = > |counter + 1', why `counter ++' could not be shortand for `counter += 1'? > | > |If this is done early enough in the code, I think this should be possible? > > It's possible. But do you think this is what you really want? > Think about "a++", where a = "foo" for example. I think it's > confusing, rather than useful. Matz: Is there any logical difference between a++ and a.succ! Dave