Re: [RFC] Draft - Closure self reference

From: Date: Fri, 20 Nov 2020 19:08:29 +0000
Subject: Re: [RFC] Draft - Closure self reference
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-112266@lists.php.net to get a copy of this message
On Fri, Nov 20, 2020 at 12:58 PM Guilliam Xavier <guilliam.xavier@gmail.com> wrote: > > 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". > > Ugh. That's ugly. I want to say we should fix it, but the horse has left the stables, so it's too late to enforce the right (to me) ordering. -Sara

« previous php.internals (#112266) next »