> On 4 Feb 2017, at 07:25, Aaron Piotrowski <aa...@trowski.com> wrote:
> 
> $callback = |int|float $x| => $x ** 2;

Forget the parser, you're giving my eyes diabetes trying to read that.

As has been said before, PHP is relatively verbose compared to other languages. 
That makes it slightly more characters to type, but it also makes it absolutely 
clear what is happening.

As Niklas said, all ambiguity/clarity issues are solved by using "function", at 
the cost of 6 characters.

Suggesting that a search for arrow functions will be easier with <insert random 
character here> and then using grep (which could also easily match arrow 
functions using "function") as your example search seems odd to me.





--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to