private attributes in objects

memolus at googlemail.com memolus at googlemail.com
Sun Oct 11 13:28:15 PDT 2009


Thanks for your answer.
> This sketch could use a function-valued property of this to use the private id member, for motivation.
Does your expression "a function-valued property of this" mean "method"?

> Sorry, I don't know what you mean. What in ES5 prevents you from using which getter or setter syntax?
You're right, there's the complex "defineProperty" methode I could
use, but they are not so handy.
Anyway why shouldn't I be able to set private attributes in {}-styled
object definitions?


More information about the es-discuss mailing list