Harmony classes

Brendan Eich brendan at mozilla.com
Mon Jun 6 00:48:36 PDT 2011


On Jun 5, 2011, at 10:59 PM, Kam Kasravi wrote:

> From the harmony classes example copied below for reference.
> The set health(value) {...} assigns a new value to this.health. But health is a private property, so the assignment is setting a public property. Shouldn't the assignment be private(this).health = value?

Yes, thanks -- fixed.

/be


More information about the es-discuss mailing list