2 ms·
I'm not sure I fully get the explanation from your EDIT. If you had a single scope resolution operator ::, classes and namespaces should share the same hash an
by wvenable 17y ago
I'm not sure I fully get the explanation from your EDIT. If you had a single scope resolution operator ::, classes and namespaces should share the same hash and lookup. A class is, fundamentally, a namespace.
namespace foo;
function bar(){echo "func\n";}
class foo{
static function bar(){echo "func\n";}
}
Should be equivalent as far as invoking them is concerned.