Proposal: Abstract References

Isiah Meadows impinball at gmail.com
Wed Oct 22 13:12:40 PDT 2014


I know that this could clearly work for implementing private arrays, etc.
as well, but what about private integer or booleans?

```js
let _x = 0;
let _y = false;

class Foo {
  constructor(x, y) {
    this::_x = x;
    this::_y = y;
  }

  // ...
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141022/c18a3d46/attachment.html>


More information about the es-discuss mailing list