News for hackers. Stuff that matters.
Re:Twitter, Ruby on Rails, Scala and people who don’t RTFA by hjdivad on Friday April 03, 2009 @10:49AM (#544954)
I'm not sure, but I think your counterexample is meant to show you can't replace `Array#pop`. However, that's not what you show -- you show that irb depends on `Array#pop` for its normal usage.

Consider:

  $ ruby -e "class Array; def pop; self.first; end; end; puts [1,2,3].pop"
  1

There are no comments on this comment yet.