Walton Hoops wrote:
<snip>

> Now consider the ruby way:
> 
> 10.times do |i|
>   print "#{i},"
> end
> 
> Some length as the C code, but much more readable.  Heck, it's
> almost English!  

Not for me it wasn't.  I had to try it to see that it actually works. 
My initial impression was that it would print 10 copies of i.  I still 
don't see where 'i' is incremented so this is one of those "magical" 
constructs much like your impression of ++ in C.  I would find this much 
harder to maintain than the C version.

Which is part of the beauty of Ruby: It's simple,
> natural, readable syntax.  I've seen a lot of arguments that it
> doesn't fit with ruby's object model, but to me that's not the key
> point.  ++ doesn't fit with Ruby's elegant syntax.
> 
>