callable objects ?

Brandon Benvie brandon at brandonbenvie.com
Wed Apr 18 16:26:19 PDT 2012


Proxies seem to be able to support this well given a little bit of extra
specification. A proxy attempts to forward the apply/construct action
naively to its target. The result is it either succeeds or doesn't, and the
same invariant checks would apply (private names have the same rules for
configurability right?).

The only difference is that a proxy won't know the result before actually
attempting to follow through, which means that private non-configurable
properties are a kind of booby trap if you *don't* always forward
everything.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120418/8ea4dadb/attachment.html>


More information about the es-discuss mailing list