Hi, On Fri, Feb 20, 2015 at 6:01 AM, François Laupretre <franc...@php.net> wrote: > Hi Levi, > > Just my opinion : > > Add 'resource', 'object', 'scalar', 'mixed', 'numeric' > > Remove 'double' (avoid this alias if we decide to encourage 'float' > everywhere) > > Not sure we'll use Boolean and integer but reserve also. > > Hope 'null', 'true', and 'false' can technically be used as type hints. If > not, bad news, especially for null. Love 'int|false' as return type ! >
I'd rather not reserve 'resource'. Such a hint may be useful in the short term, but there already are plans to turn the current resources into objects, and with the rise of REST lately it is also an obvious base class/interface/trait name. Agree on 'double' though ... if we want to discourage its usage, we might even think of deprecating it. Cheers, Andrey. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php