Re: [RFC]
| From: | Dik Takken | Date: | Sat, 15 Feb 2020 22:41:50 +0000 |
| Subject: | Re: [RFC] | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-108609@lists.php.net to get a copy of this message | ||
On 11-02-2020 12:13, Manuel Canga wrote:
> My proposal is ":func" in order to avoid full namespace in callback of
> functions. E.g:
>
> use function \My\I18N\i18n_translate;
>
> $mapped_array = array_map(i18n_translate::func, $array);
Something that did not occur to me before: Seeing the scope resolution
operator being used on something that is not a class or object looks
strange to me. Especially given the resemblance with the built-in
'class' constant that classes have, this looks like functions being used
as if they are classes...
Regards,
Dik Takken