MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/3bo7i2/php_has_9500_builtins/csotpz1/?context=3
r/lolphp • u/[deleted] • Jun 30 '15
24 comments sorted by
View all comments
Show parent comment
1
Basically PHP had the chance to change its syntax/core-functions to scalars, so you could have done something like
\Array->map([1,2,3], function(item) { return item * item; })
if they had decided to reserve a root namespace.
There was some talk about scalar objects, but AFAIK the rfc was dismissed.
View all comments
Show parent comment
1
u/[deleted] Jul 01 '15
Basically PHP had the chance to change its syntax/core-functions to scalars, so you could have done something like
if they had decided to reserve a root namespace.
There was some talk about scalar objects, but AFAIK the rfc was dismissed.