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.

PHP RFC: Short Closures

2 pointsby paralelogramabout 10 years ago

2 comments

stephenrabout 10 years ago
I honestly don&#x27;t see the point, but then maybe that&#x27;s because literally none of the code I write uses a callback to multiply a number by 2.<p>I&#x27;ve seen similar &quot;look how minimal a closure can be&quot; arguments for several languages, and they <i>always</i> use a ridiculously simple body - usually `$x * $y` or `$x * 2` etc.<p>How do they end up looking (and thus how easy are they to read) when its a realistic body with several lines?
claudiugabout 10 years ago
~&gt; looks interesting