libex-monkeypatched-perl

experimental API for safe monkey-patching

Description

The term "monkey patching" describes injecting additional methods into a class whose implementation you don't control. If done without care, this is dangerous; the problematic case arises when:
 * You add a method to a class;
 * A newer version of the monkey-patched class adds another method of
   the same name
 * And uses that new method in some other part of its own
   implementation.

ex::monkeypatched lets you do this sort of monkey-patching safely: before it injects a method into the target class, it checks whether the class already has a method of the same name. If it finds such a method, it throws an exception (at compile-time with respect to the code that does the injection).

See <http://aaroncrane.co.uk/talks/monkey_patching_subclassing/> for more details.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://metacpan.org/release/ex-monkeypatched


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install libex-monkeypatched-perl