News for hackers. Stuff that matters.
Re:Yehuda Katz's 10 Favorite Things About Ruby by steveklabnik on Monday August 24, 2009 @04:54PM (#783327)
Well... yes. You're right. If you're depending on one behavior rather than the other, then totally. I guess I was thinking about it more in terms of two different implementations of the same thing. "If we don't have a quicksort defined yet, make one."
Re:Yehuda Katz's 10 Favorite Things About Ruby by wycats on Monday August 24, 2009 @05:09PM (#783370)
This is basically how ActiveSupport's "activesupport/ruby/shim" functionality works. It adds pure-ruby versions of features added in Ruby 1.9 only if they aren't already defined.