Re: [RFC] Short syntax for anonymous functions
From: Nikita Nefedov Date: Tue, 19 Feb 2013 20:40:44 +0000 Subject: Re: [RFC] Short syntax for anonymous functions References: 1 2 3 4 5 6 7 Groups: php.internals Request: Send a blank email to [email protected] to get a copy of this message
On Tue, 19 Feb 2013 16:31:39 -0000, Marcello Duarte <[email protected]> wrote:On 19 Feb 2013, at 16:29, Morfi wrote:Why not () => { echo $n; } then?($n) => { echo $n; } ($n) use ($m) => { echo $n; }Morfi, the problem pointed out already is when you have no arguments it would be the same as the statement block, which would cause BC issues.
Thread (65 messages)
« previous | php.internals (#65966) | next » |
---|