3 ms·
The BEGIN { subtype ... } code is just pure perl/Moose. So its possible for the MooseX::Declare developers to add some extra sugar there.
by draegtun 16y ago
The BEGIN { subtype ... } code is just pure perl/Moose. So its possible for the MooseX::Declare developers to add some extra sugar there.
- phaylon 16y agoIt goes away as soon as you put the MooseX::Types declaration into its own package. Which one does pretty often, since reusing types and coercions produces more maintainable code in general. The title of that library isn't "Organise your Moose types in libraries" without reason :)