News for hackers. Stuff that matters.
Re:Python's super considered harmful by steveklabnik on Tuesday December 28, 2010 @11:55AM (#2045931)
In ruby, #2 is as simple as

    num = 42

    def num.to_whatever
      "whatever"
    end

    num.to_whatever # => 42
    41.to_whatever # => NoMethodError
I agree with my sibling, though. It might be better that this is harder in Python. It's a bad idea, generally.

There are no comments on this comment yet.