News for hackers. Stuff that matters.
Re:Rust is surprisingly expressive by matthewmacleod on Saturday December 28, 2013 @05:22PM (#6976919)
Yet this is what Ruby does, AFAIK.

Numeric#days is an ActiveSupport method, not core Ruby. But yes, it does patch the behaviour into a core class.

This is a bit of a legacy of Ruby programming, and it's definitely bad to pollute the global namespace. However, I expect we'll see eventual use of Refinements (http://www.rubyinside.com/ruby-refinements-an-overview-of-a-...) now that they are available; this will allow classes to override core methods without affecting other classes out of scope.

Re:Rust is surprisingly expressive by philwelch on Saturday December 28, 2013 @05:28PM (#6976934)
Refinements do a little less than previously advertised three years ago, and as far as language features go I don't think they're worth the performance implications.