Sonja Elen Kisa wrote:
> "foo += 1" somehow seems less elegant or pretty as "foo++".
>
> Is there any reason Ruby doesn't have ++? Is it something that might be
> added in a future version?
The short answer is that it doesn't fit with Ruby's object model, and
anyway, Ruby's iterators remove most of the need for ++.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen / marnen.org
--
Posted via http://www.ruby-forum.com/.