Apparently `Array.prototype.flatten` is not Web-compatible because of old versions of MooTools
We might have to rename the method before shipping it in browsers.https://github.com/tc39/proposal-flatMap/pull/56#issue-173327251 …
-
-
"Sure, in retrospect MooTools did the wrong thing" – I think this is harsh judgement. This was all created when ECMAScript 4 failed. We didn't have reason to believe that JS would evolve much. Pace was extremely slow. Also seehttps://medium.com/@cpojer/breaking-the-web-with-javascript-48cc406ca98d …
-
But that’s exactly the point I’m trying to make: hindsight is 20/20. *In retrospect* it was a bad decision to extend natives, but at the time MooTools was just using the platform and the language in a creative way.
- 1 more reply
New conversation -
-
-
You are right! I didn't realize that initially when I tweeted that. It will still break compatibility but it would at least align the API.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.
cc