Re: Types on the right or on the left
| From: | Stas Malyshev | Date: | Tue, 04 Nov 2014 18:48:00 +0000 |
| Subject: | Re: Types on the right or on the left | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-78670@lists.php.net to get a copy of this message | ||
Hi!
> But it’s rather weird for closures:
>
> $foo = Foo function () {
> };
Not much weirder than:
$foo = static function () { ... }
which we already have. Putting modifiers in front of the function is
nothing foreign to PHP.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/