--000e0cd719f2685c80047f1b2275 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Feb 7, 2010 at 8:15 PM, Sonja Elen Kisa <sonja / kisa.ca> wrote: > "foo + " 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? > I think this is something of a dead horse around here. The short answer is: matz doesn't want it, most rubyists don't want it (and even actively oppose it), therefore it's never going to happen. Adding ++ would break backwards compatibility with libraries like superators: http://jicksta.com/posts/superators-add-new-operators-to-ruby However, there's no technical reason why Ruby can't have a x++ operator which functions as shorthand for: begin; _tmp ; x + ; _tmp; end -- Tony Arcieri Medioh! A Kudelski Brand --000e0cd719f2685c80047f1b2275--