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.

Familiarity Bias Is Holding You Back: It's Time to Embrace Arrow Functions

7 pointsby ericelliottabout 8 years ago

2 comments

poweraabout 8 years ago
This guy is incredibly sanctimonious, but he misses the biggest problem with his notation. Not all the operators he uses are associative.<p><pre><code> const secret = msg =&gt; () =&gt; msg; </code></pre> This technically parses uniquely, but it&#x27;s not at all obvious what the parse structure is. Writing it with the squiggly brackets makes it clearly parsable.<p><pre><code> const secret = { msg =&gt; { () =&gt; msg } };</code></pre>
评论 #14217752 未加载
Safety1stClydeabout 8 years ago
The interesting bit seems to be the &quot;premium content&quot;.