Re: Types on the right or on the left
| From: | Levi Morrison | Date: | Wed, 05 Nov 2014 01:08:13 +0000 |
| Subject: | Re: Types on the right or on the left | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-78696@lists.php.net to get a copy of this message | ||
On Tue, Nov 4, 2014 at 6:05 PM, Stas Malyshev <smalyshev@sugarcrm.com> wrote:
> Hi!
>
>> Except
static function() and static
>> function foo() already have
>> meaning, and if we allowed static return types (very possible) that
>> would be ambiguous. This syntax is a no-go.
>
> If it is possible, why it's not the part of the RFC? Probably because
> there's not much place where it would make sense.
Actually it's because I don't have the time to verify that it wouldn't
violate type rules and implement it. There is no other reason.