setPrototypeOf vs obj.__proto__ assignment
John Barton
johnjbarton at google.com
Mon Apr 7 11:02:59 PDT 2014
On Mon, Apr 7, 2014 at 10:51 AM, Andrea Giammarchi <
andrea.giammarchi at gmail.com> wrote:
> ..
>
> It feels like everyone uses `__proto__` on daily basis while ES6 promotes
> classes ... so either `__proto__` is not a real world use case, or `class`
> landed for no reason, IMO.
>
You are correct, lots of code uses '__proto__', but your conclusions based
on this make no sense. ES6 has nothing to say about daily use until it
ships in all relevant platforms, and the current count is zero.
Moreover, on platforms without setPrototypeOf(), it's advantages are not
relevant.
jjb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140407/cc87b867/attachment.html>
More information about the es-discuss
mailing list