proposal: Object Members

Ranando King kingmph at
Sun Aug 5 14:41:20 UTC 2018

Just released the POC code for review. Using the `Privacy()` export, you
can now wrap any class or object definition and add `private` and
`protected` members. To add privileged members to a `class`, declare a
function `static [Privacy.Data]() {}` and return an object containing your
`public` data and `private`/`protected` members. To add privileged members
to any object, declare the field name with array notation, including the
privilege level in the name. The "internal" privilege level has been left
out of this POC and will be released as a separate proposal if this
proposal gains any traction.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list