Re: Arrow function expressions in PHP
| From: | Rowan Collins | Date: | Thu, 01 Oct 2015 18:13:17 +0000 |
| Subject: | Re: Arrow function expressions in PHP | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-88619@lists.php.net to get a copy of this message | ||
Levi Morrison wrote on 01/10/2015 19:09:
You are capped to saving about 5-7 characters no matter what you do with this functionality.I see an upper limit to savings of 21 - using "|" to stand in for "some single character delimiting the sections" gives: |$x|$y|$x*$y| // 13 chars vs function($x)use($y){return $x*$y;} // 34 chars