Hi all, recently tobyink wrote:
«"Classes are just packages" pre-supposes a class-based paradigm...I want to put less emphasis on classes and more on objects. It's possible to create objects by composing roles on-the-fly, for example.»
I guess this is what the method apply_roles_to_object from Role::Tiny is made for.
When would you use (or prefer) it? I can't imagine that this is just a matter of taste or personal preferences.
Thanks for enlightenment in advance and best regards, Karl
«The Crux of the Biscuit is the Apostrophe»
perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help
In reply to Role::Tiny: When to use apply_roles_to_object? by karlgoethebier
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |