in reply to Re^6: RFC: OO Perl using Moo/Moose book
in thread RFC: OO Perl using Moo/Moose book

> "Classes are just packages" pre-supposes a class-based paradigm.

so your definition of "Delegation" goes into the direction of the traditional JS model where objects "beget"° other objects?

While this is certainly very important, I'd rather prefer a general book listing usual patterns for dynamic languages.

It's very hard to discuss OO when the terminology is dominated by GoF book concepts from the static typing world.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

°) beget borrowed from Crockford's "JS the good parts" book

  • Comment on Re^7: RFC: OO Perl using Moo/Moose book

Replies are listed 'Best First'.
Re^8: RFC: OO Perl using Moo/Moose book
by tobyink (Canon) on Apr 30, 2019 at 17:48 UTC

    By "delegation", I mean like handles in Moose/Moo.

      > By "delegation", I mean like handles in Moose/Moo

      Hmm ... for me this looks rather like forwarding and not delegation.

      You'll really have problems writing a language agnostic book.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

        I never claimed it would be language-agnostic. It's a Modern Perl OO book. I just hope that it can teach principles that they can apply when programming in other languages too.