On 14 October 2015 at 23:41, Michael McGlothlin
<
mike.mc...@gmail.com> wrote:
> I guess what I'm trying to achieve is something of a metaclass (dynamically
> adding getters/setters from the constructor). Would using Proxy() to achieve
> something similar be any better so far as performance?
Using proxies is probably the worst possibility by far, in all
dimensions. Avoid them if you can.
So, I'm afraid the only thing I can say is: meta-classes or reflection
of the kind you suggest are not something strong mode is designed to
support. And I wouldn't know how to support it either, it's
fundamentally incompatible with the design goals. Fortunately, where
you need something like that, fine-grained interop with weak code is
possible, and that is by design. :)
/Andreas