News for hackers. Stuff that matters.
Re:Inheritance versus Composition by perlgeek on Thursday May 09, 2019 @04:16AM (#19866322)
Perl 6 does, with a "handles" trait:

   class MyType {
       has SomeOtherType $.containedObject handles ('MethodA', MethodB => 'SomeOtherName', 'MethodC');
   }
Very useful when you need it.

https://docs.perl6.org/language/typesystem#trait_handles

Re:Inheritance versus Composition by fanf2 on Thursday May 09, 2019 @03:35PM (#19871498)
Similar in perl5 with Moose or Moo

  package MyClass;

  use Moo;

  has member => (
    is => ‘rw’,
    handles => [qw[
      methodA
      methodB
    ]]
  );