Proxies
Tom Van Cutsem, Mark S. Miller · Symposium on Dynamic Languages (DLS) · 2010
Proxies are a powerful approach to implement meta-objects in object-oriented languages without having to resort to metacircular interpretation. We introduce such a meta-level API based on proxies for Javascript. We simultaneously introduce a set of design principles that characterize such APIs in general, and compare similar APIs of other languages in terms of these principles. We highlight how principled proxy-based APIs improve code robustness by avoiding interference between base and meta-level code that occur in more common reflective intercession mechanisms.
Cited by 74 works. doi:10.1145/1869631.1869638
Authors
References
- Self: The power of simplicity
- The art of the metaobject protocol
- Robust composition: towards a unified approach to access control and concurrency control
- Strongtalk
- JavaScript: The Good Parts
- Reflective facilities in Smalltalk-80
- Mirrors
- Concurrency Among Strangers: Programming in E as Plan Coordination
- Partial behavioral reflection
- Wrappers to the rescue