3 ms·
> The purpose of this library is to prevent TC39 from adding Array.prototype.smoosh and Array.prototype.smooshMap as replacement names for Array.prototype.flatt
by alexbanks 9y ago
> The purpose of this library is to prevent TC39 from adding Array.prototype.smoosh and Array.prototype.smooshMap as replacement names for Array.prototype.flatten and Array.prototype.flatMap. They usually don't listen to popular votes, but they do listen to the Web and usages of JavaScript in the wild. So here's your chance to vote with your code in production. Put this library in your production large-scale website (it's very tiny! won't hurt) and we'll have a compelling case for TC39 not to break backwards compatibility.
Why do I not want TC39 to use smoosh or smooshMap?
- jamesgeck0 9y agoPerhaps you hate whimsy. Perhaps you desire consistency with other languages. Perhaps you don't care about breaking a ton of unmaintained websites. `smoosh` is a perfectly fine and delightful method name, TBH.
- aspirin 9y agoIt's a form of protest. If both flatMap and smooshMap are seen as equally "breaking the web", maybe TC39 will coose the less insane name for the method.
- mattbierner 9y agoExcept one is a real problem and the other is an invented problem created only to cause more problems