Hi -- On Sat, 7 Nov 2009, Seebs wrote: > On 2009-11-06, David A. Black <dblack / rubypal.com> wrote: >> It seems like a lot of special-casing and strangeness, though. I'm a >> little bit hampered in discussing it, I guess, because I don't see >> what benefit it would confer in exchange for the anomaly. So I'm >> probably going in circles. > > I have found a lot of idioms which are amenable to use with ++, especially > postincrement, but they are often not nearly so useful outside of the C-like > languages. > > Consider the canonical inner loop for copying an array in C: > s[i++] = t[j++]; > > There's really no idiomatic equivalent -- nor a need for one, usually. Oh, I have no problem with ++ per se. It just seems against the grain in Ruby. David -- The Ruby training with D. Black, G. Brown, J.McAnally Compleat Jan 22-23, 2010, Tampa, FL Rubyist http://www.thecompleatrubyist.com David A. Black/Ruby Power and Light, LLC (http://www.rubypal.com)