From: Aldric Giacomoni Date: 2009-11-09T22:30:52+09:00 Subject: Re: Ruby doesn't implement x++ for Fixnum's because ??? Marnen Laibow-Koser wrote: > Tony Arcieri wrote: > >> Because >> it is not Ruby-like! According to certain people's definitions of >> "Ruby-like"... > > The fact that it would require major parser and language changes is a > pretty good indication that it is not in keeping with the nature of the > language... > > Best, > -- > Marnen Laibow-Koser I really do hesitate to speak, here, as I am not nearly as skilled in Ruby, or C / C++, as the rest of you, but it seems to me that Matz expressed his opinion on the matter already... :) Also, in more productive terms: "a += 1".size => 6 "a+=1".size => 4 "a++".size => 3 RubyForum::Thread.self.count_keystrokes => zomg ! On the other hand, it's also plain impossible to implement, for various reasons listed numerous times prior to this humble message. It seems to me that at this point, the next and only logical step is to take the Ruby source code and go implement whatever you want to implement.. Then come back with your own language, which may well be called Lapis-Lazuli, and will allow the ++. -- Posted via http://www.ruby-forum.com/.