News for hackers. Stuff that matters.
Re:Improving your (Python) code with modern idioms by dalke on Wednesday May 09, 2012 @07:09AM (#3947975)
When I read http://www.rubyinside.com/ruby-2-0-implementation-work-begin... I can't help but interpret it as Ruby having a similar track to Python. Future Ruby 2.0 code will support keyword arguments and refinements.

Ruby 1.9 had various changes over 1.8, like those listed at http://blog.grayproductions.net/articles/getting_code_ready_... .

Some of the new things in 1.8 include allocate, respond_to, fully qualified names, Array#zip, and "In Ruby 1.8.0, both break and return exit the scope of the proc, but do not exit the scope of the caller."

That reads like Ruby of 1.6 (about 10 years ago) would be stylistically different from modern Ruby, in about the same way that Python is stylistically different.

Going back further, early Ruby had a lot more influence from Perl, like magic variable names and the "discouraged" flip-flop operator. The plan is to remove these in some still hypothetical Ruby 3.

There are no comments on this comment yet.