David Herman wrote:
class Vector { /* various methods... */forEach = Array.prototype.forEach; // just an example, don't bikeshed me /* more methods ... */ }
Perhaps we are overreacting to the footgun of the proto-shared mutable object defined via a data property. Of course one can shoot at toes imperatively after the class declaration. And functions are mutable objects, so methods are a special case we bless even in the most minimal classes proposals!
Still, I prefer to defer anything like the above (and of course, defer the better traits thinking you showed).
/be _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

