News for hackers. Stuff that matters.
Re:Goodbye, shitty Car extends Vehicle object-orientation tu... by couchand on Saturday October 19, 2019 @11:55PM (#21302230)
> If object X has 9 methods I want to reuse in object Y, making X a component of Y still requires me to re-implement those 9 methods in Y, even if they are just pass-throughs.

That is also not universal. In Ruby, for instance, one can write:

    class Y
      def method_missing(m, *args, &block)
        @x.send(m, *args, &block)
      end
    end
Re:Goodbye, shitty Car extends Vehicle object-orientation tu... by smrq on Sunday October 20, 2019 @02:42AM (#21302605)
I don't think you have to squint very hard to see that as an implementation of inheritance.
Re:Goodbye, shitty Car extends Vehicle object-orientation tu... by tome on Sunday October 20, 2019 @05:25AM (#21303078)
Will that allow the version of m in x to send messages back to y? I don't know Ruby, but most likely not.
Re:Goodbye, shitty Car extends Vehicle object-orientation tu... by kragen on Sunday October 20, 2019 @12:18PM (#21305058)
No, for that you need to pass a self argument. See my comment below about Abadi and Cardelli's book for a (reference to a) full development of the theme.