Re: Proposal For A New Alternative Keyword To “this” For Classes

Bergi a.d.bergi at web.de
Sat Mar 9 14:18:07 UTC 2019


Hi John,
I don't think we do need another keyword for this. People would forget
to use that new keyword instead of using this, just like they currently
forget to use arrow functions.
That said, your desired "behind-the-scenes implementation" can already
be achieved easily with the class fields proposal and an arrow function.
However, [there are many problems with that
approach](https://medium.com/@charpeni/arrow-functions-in-class-properties-might-not-be-as-great-as-we-think-3b3551c440b1)
anyway.

kind regards,
  Bergi


More information about the es-discuss mailing list