for own(...) loop (spin-off from Re: for..in, hasOwnProperty(), and inheritance)
Quildreen Motta
quildreen at gmail.com
Tue Nov 8 14:43:02 PST 2011
On 08/11/11 20:22, Axel Rauschmayer wrote:
>>> I see two domains for the concept of “own” properties:
>>> 1. Meta-programming.
>> Could you expand on the use of `own' properties for meta-programming?
>> I'm afraid I can't really envision it =/
>
> Whenever you copy properties from one object to another one, you are
> usually doing meta-programming (unless you use an object as a dictionary).
>
Hm, I see. I always tend to think of meta-programming in the Lisp sense
(macros that mutate the AST), but I guess I see the point in generating
objects dynamically.
More information about the es-discuss
mailing list