Re: [RFC][Discuss] Arrow Functions

From: Date: Tue, 31 Jan 2017 12:45:46 +0000
Subject: Re: [RFC][Discuss] Arrow Functions
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-98078@lists.php.net to get a copy of this message
> > As noted in the RFC, this isn't possible due to ambiguities with array > keys and yield expressions with keys. > There are not ambiguities technically, so it is possible if we want to: $a = [ $y => 'b', ($x) => $x + 1, // key, value pair ]; $a = [ $y => 'b', (($x) => $x + 1), // closure ];

« previous php.internals (#98078) next »