TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Don't let TC39 use smoosh or smooshMap

14 pointsby voctorabout 7 years ago

4 comments

alexbanksabout 7 years ago
&gt; 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&#x27;t listen to popular votes, but they do listen to the Web and usages of JavaScript in the wild. So here&#x27;s your chance to vote with your code in production. Put this library in your production large-scale website (it&#x27;s very tiny! won&#x27;t hurt) and we&#x27;ll have a compelling case for TC39 not to break backwards compatibility.<p>Why do I not want TC39 to use smoosh or smooshMap?
评论 #16553558 未加载
评论 #16553603 未加载
olliejabout 7 years ago
Cool, go back and tell the library authors to stop putting bullshit on native objects, or get them to put namespace prefixes when they do. Don’t blame TC39 for doing their jobs: not breaking existing content.<p>Blame the authors of the frameworks that force js into a terrible corner
TheCoelacanthabout 7 years ago
If you do this they will just use some other ridiculous name like &#x27;squash&#x27;. Instead you need to check for the presence of any other TC39 feature and then if any are present, break if flatten isn&#x27;t present.
cpburns2009about 7 years ago
What is TC39? And what is smoosh?
评论 #16554781 未加载
评论 #16554685 未加载