Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^7: Delegating to a role in Moose

by Arunbear (Prior)
on Jan 15, 2018 at 13:06 UTC ( #1207280=note: print w/replies, xml ) Need Help??


in reply to Re^6: Delegating to a role in Moose
in thread Delegating to a role in Moose

Re: handles => 'MyURIRole' vs handles => qr/.*/, the former is more work to set up, but I think it should be preferred because it's more self documenting - you've documented in code exactly what methods you're delegating.

I agree that the documentation on delegation is lacking, but that's a symptom of a larger problem. E.g. the official docs on Perl OOP, perlobj and perlootut don't mention delegation at all.

Replies are listed 'Best First'.
Re^8: Delegating to a role in Moose
by Anonymous Monk on Jan 15, 2018 at 14:38 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1207280]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2020-10-01 14:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (14 votes). Check out past polls.

    Notices?