Claude Pache claude.pache at
Wed Oct 10 22:14:08 UTC 2018

> Le 10 oct. 2018 à 23:17, kai zhu <kaizhu256 at> a écrit :
> hi Man, i don’t have strong opinion on Array.prototype.remove, but i have strong opinion against your use-case to subclass/extend Array.  from a product-development perspective, you're creating unnecessary integration-headaches by having the client <-> server system pass around <MyArray> instances instead of plain JSON arrays.

Not every object in JS is intended to travel between client and server, or to be stored in JSON. And if/when the class want to share some information, it can easily translate its data to and from a JSON-friendly format. (Sorry, I’m not motivated to read the rest of your e-mail.)


More information about the es-discuss mailing list