Any reason why __proto__ is not a well known symbol?

Coroutines coroutines at gmail.com
Tue Feb 16 17:01:53 UTC 2016


On Tue, Feb 16, 2016 at 8:00 AM, Dean Landolt <dean at deanlandolt.com> wrote:

> Is it too late to remove support for dunder-__proto__ strictly within module
> contexts? This might introduce a bit of a refactor hazard when pulling old
> code into modules, but it's only the static `obj.__proto__` usage that has
> any effect so this can be handled pretty easily with linter warnings. Or it
> could be contextually reserved and throw an early exception.

I dunno, it just seems odd to cement it forever in JS when you can
even feature-test for it (vs using a Symbol).  At some point I really
just expect people to keep up with with things and not be a Python 2
lazy person :D  I hope ES7 makes breaking changes all over the place
:p


More information about the es-discuss mailing list