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 …
-
-
Replying to @mathias1 reply 0 retweets 4 likes
-
Why not just set the default depth to Infinite and call it a day?
1 reply 0 retweets 5 likes -
The implementation differences aren’t the problem. Enumerability, and `Elements.prototype.flatten`, are:https://developers.google.com/web/updates/2018/03/smooshgate#mootools …
2 replies 0 retweets 5 likes -
"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 …
1 reply 1 retweet 5 likes -
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 reply 0 retweets 4 likes
I explicitly use phrasing like “in retrospect” and “nowadays” to make it clear that back when MooTools was created, we didn’t have the best practices we do today.
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