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

> 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

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

Replies are listed 'Best First'.
Re^10: RFC: OO Perl using Moo/Moose book
by tobyink (Canon) on May 01, 2019 at 10:40 UTC

    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.

      With the wrong terminology?

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

        Wikipedia says

        The term delegation is also used loosely for various other relationships between objects; see delegation (programming) for more. Frequently confused concepts are simply using another object, more precisely referred to as consultation or aggregation; and evaluating a member on one object by evaluating the corresponding member on another object, notably in the context of the receiving object, which is more precisely referred to as forwarding (when a wrapper object doesn't pass itself to the wrapped object).12a The delegation pattern is a software design pattern for implementing delegation, though this term is also used loosely for consultation or forwarding.

        So the terminology might be considered imprecise by Wikipedia, but as that terminology and use is far from uncommon, I guess you'll have to rely on the exact definitions given by each writer instead of hoping for a general terminology.