Slashdot Mirror


Ruby 2.0.0 Released

An anonymous reader writes "Today version 2.0.0 of Ruby has been released. This is a stable release, and the Ruby team has done their best to make it compatible with 1.9, making it easier to migrate than it was to switch from 1.8 to 1.9. New core language features include: 'Keyword arguments, which give flexibility to API design; Module#prepend, which is a new way to extend a class; A literal %i, which creates an array of symbols easily; __dir__, which returns the dirname of the file currently being executed; and UTF-8 default encoding, which make many magic comments omissible.' There are also new built-in libraries for lazy stream and for an asynchronous exception handling API. The release includes a number of performance improvements and debug support for DTrace."

3 of 121 comments (clear)

  1. Re:NIce by Anonymous Coward · · Score: -1, Troll

    Yeah, here's some code you should be able to look at...

    class Ass
            def take_it
                    raise "LOL NOOB"
            end

            def use_real_language
                    puts "Try http://java.com"
            end
    end

    you = Ass.new
    you.use_real_language

  2. Re:Yay! by Anonymous Coward · · Score: 0, Troll

    Yeah, sure, like all the hipsters that use Ruby and MongoDB just to be edgy even know what "compiler" means. Be thankful he knows how to use the CLI.

  3. Re:I'm sure... by Anonymous Coward · · Score: -1, Troll

    Except Python isn't really all that hipster.