Re: Arrow function expressions in PHP
| From: | Rowan Collins | Date: | Thu, 01 Oct 2015 17:57:14 +0000 |
| Subject: | Re: Arrow function expressions in PHP | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-88616@lists.php.net to get a copy of this message | ||
Levi Morrison wrote on 01/10/2015 18:40:
I tried to move the discussion to whether or not auto-capturing variables is a good idea, regardless of syntax, but the responses continue to be of the form "but that particular example syntax looks a bit ugly". So I agree, let's not discuss the details of ANY syntax, until we've come to some conclusion on whether or not auto-capture is a negotiable feature.Or we can figure out some other such symbol. Worse casing no white space, brain storming:Please, I already asked people to stop making suggestions for shorter syntax foruse().
Again, if use() is a pain then auto-importing the used variables is a good solution. If it's not a pain why are you suggesting new syntax?I thought I'd answered this already - because some people dislike the *verbosity* of "use" (and of the syntax in general) but are happy with the *functionality*. You are assuming that "I think the current syntax is verbose" is synonymous with "I think having to list captured variables is annoying", but there are people who do not take that position. Regards, -- Rowan Collins