How about `own` keyword? It might work with public and private fields, and
seems more elegant (because of destructuring we have a lot of symbols in
the paremeters declaration)
```.js
// This will throw a SyntaxError?
class Rectangle {
constructor(own #x, own #y, own name) {}
}
```
There's a new proposal using the `own` keyword in class fields declaration (
https://github.com/erights/Orthogonal-Classes). It might fit perfectly.
--
Augusto B. Moura
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss