Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: constraining the keys of a HashRef in Moose

by kennethk (Monsignor)
on Aug 30, 2013 at 15:33 UTC ( #1051653=note: print w/ replies, xml ) Need Help??


in reply to Re^3: constraining the keys of a HashRef in Moose
in thread constraining the keys of a HashRef in Moose

It could mean a large number of new packages, but that doesn't necessarily mean a large number of new files. If I have a type that is only going to appear once as the field value of another type, I will frequently put the object declaration, a.k.a. the package, in the same file. This avoids the type of file proliferation you are concerned about, while still leveraging the full power of the Moose type system.


#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.


Comment on Re^4: constraining the keys of a HashRef in Moose

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2014-10-21 07:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (98 votes), past polls