Re: [RFC][Discuss] Arrow Functions
| From: | Stephen Reay | Date: | Sat, 04 Feb 2017 07:40:45 +0000 |
| Subject: | Re: [RFC][Discuss] Arrow Functions | ||
| 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-98173@lists.php.net to get a copy of this message | ||
On 4 Feb 2017, at 12:26, Levi Morrison <levim@php.net> wrote:
>> So we should instead use syntax already used for bit wise OR, and further confuse the
>> situation when the function has no parameters and reusing the logical OR operator. Brilliant.
>
> Excuse me, good sir, but can you tell me what the
& symbol
> means? I
> thought it meant reference but it's also bitwise and! And when we put
> two of them together it is a different kind of and?!?!?!
>
> Maybe you can tell from the language I used but I don't think your
> argument has much merit. Symbol reuse is a problem that programmers
> and programming languages have been dealing with for a long time. I
> trust us to be able to deal with it, should we agree to go forward
> with it.
>
Your sarcasm is in fact not lost on me my good man, and I do appreciate it.
Then surely you agree that there is no issue with function(){...} vs function() => ...being
"confusing"?
So, is there any argument besides "6 more characters" for *not* using the function
keyword?
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>