-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Must you modify core prototypes? e.g. Object.prototype #70
Comments
There is not standard that introduces TC39 looks to code in the wild for patterns to standardize. As such, there is a bit of a chicken and egg problem. See https://www.youtube.com/watch?v=xL3xCO7CLNM To adopt Collections does mean buying into certain ideas for future standards. |
(To be clear, I closed the issue because I don’t foresee acting on this. It is not to say that the issue is closed to discussion.) |
Thanks for the quick and clear response. At least this development decision/philosophy is documented here now, and here for discussion. Personally, I disagree. You're imposing unnecessary risk on codebases by making global modifications. Will it result in many terrible headaches, or a few minor ones? I can't say, but I'm fairly confident it will bite someone. If it can be done a different way without much trouble and reduce the risk, why not do it that way? |
This package definitely interferes with the Array.prototype.find polyfill. Any ETA on a V2 release to resolve this issue? |
I can’t offer an estimate, but I am moving in this direction on v2 7c674d4 |
I think it'd be at least good to document this. It's definitely a "principle of least surprise" violation (e.g I was very confused by seeing |
I notice you "shim" a bunch of things onto core prototypes, e.g. Object.addEach. Is that really necessary? Isn't it taboo to modify Object.prototype?
Can you at least point me to the ECMAScript standard that is planning to implement Object.addEach and all its friends? I can't find it.
I want to use your library, but honestly I get a bad feeling about all this modification of core prototypes.
The text was updated successfully, but these errors were encountered: