Re: Re: Return Type Declarations
| From: | Levi Morrison | Date: | Thu, 24 Apr 2014 18:15:03 +0000 |
| Subject: | Re: Re: Return Type Declarations | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-73782@lists.php.net to get a copy of this message | ||
>
> Levi, what's the syntax like for closures with use blocks? I can see
> that looking a bit weird either way, since it's presumably either:
>
> function ($foo): Bar use ($quux) {}
>
> or:
>
> function ($foo) use ($quux): Bar {}
>
> Neither are exactly ideal, but that's the hand we've dealt ourselves, I
> guess.
I believe it is the latter: function ($foo) use ($quux): Bar {}
I'll check with Joe Watkins. Do you have a case for one being superior to
the other?