> Plus on top, decorators are for metadata that may be erased, or that at least > must be optional. Non-writability in ES5 and up is not optional or erasable.
IIRC then Python decorators are functions that are applied to the property value (not entirely unlike quasis). This *could* be adapted to pass in |this| plus property name plus value for properties and be used for all kinds of things. -- Dr. Axel Rauschmayer a...@rauschma.de twitter.com/rauschma home: rauschma.de blog: 2ality.com _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss