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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php