Re: [RFC] Draft - Closure self reference

From: Date: Fri, 20 Nov 2020 18:58:19 +0000
Subject: Re: [RFC] Draft - Closure self reference
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-112265@lists.php.net to get a copy of this message
On Fri, Nov 20, 2020 at 5:02 PM David Rodrigues <david.proweb@gmail.com> wrote: > > Is it returnType as $thing ? That doesn't read well, > > but I don't see > us making return type movable. as/use should be placable in either order, > but maybe we give them required order anyway? > > I don't know if that would be a problem, because today we can have it > "function(): Type use($x)", so "Type use($x)"? > No we can't, try it (Parse error). The correct order is "function() use($x): Type". -- Guilliam Xavier

« previous php.internals (#112265) next »