Notification proxies (Was: possible excessive proxy invariants for Object.keys/etc??)

Allen Wirfs-Brock allen at
Sun Nov 25 13:22:22 PST 2012

On Nov 25, 2012, at 6:32 AM, Axel Rauschmayer wrote:

> If indeed both kinds of proxy are useful and direct proxies are more powerful, then why not only have a foundational direct proxy API and implement a tool type NotificationProxy that is based on that API.

That might work.  In that case you would probably do no invariant enforcement in the direct proxy internal methods and the notification proxy APIs would supply an intermediate layer of traps that called notification traps and then delegated to the target to get the actual results...


More information about the es-discuss mailing list