RE: JSIDL ideas for read only (Was: RE: Figuring out easier readonly interfaces)

From: Boris Zbarsky [mailto:bzbarsky@MIT.EDU] 

> The point being, this is not a useful way to have a common superclass that's immutable and has the getters and a subclass with the setters, because due to how accessor descriptors work in ES those setters end up shadowing the getters.  :(

Oh dear, how embarrassing. Back to the drawing board :(

It'll be tricky to make something that hews close to JS semantics but is still DRY for this add-setter-in-subclass use case. Siiiigh.

Received on Thursday, 3 October 2013 16:58:36 UTC