4 ms·
In the dynamic languages world this is done with monkey patching. If you invent a declarative way to monkey patch your code, you've got AOP as done in Spring.
by brabel 7y ago
In the dynamic languages world this is done with monkey patching.
If you invent a declarative way to monkey patch your code, you've got AOP as done in Spring.
- sgrove 7y agoI believe emacs lisp's advice system is an AOP system in a highly dynamic language, and doesn't make much use of monkey-patching. Advice/AOP is a pattern that can fit (if you want it) in dynamic language as well.
- fulafel 7y agoWhat about this Clojure library? https://github.com/technomancy/robert-hooke https://github.com/technomancy/robert-hooke
- mping 7y agoDon't forget AOP can work on top of compiled classes, not sure I'd there is an equivalent in python or ruby.