Hi all,

On Tue, Dec 29, 2015 at 5:28 AM, Yasuo Ohgaki <yohg...@ohgaki.net> wrote:
> Object(class) is type, so it makes sense checking class consistency. If we
> check object's class, not only the class but also ancestor classes should be
> checked. This may affect performance.
> I'm not sure if this worth the effort.

It sounds negative, so I correct this.

Since we have class type hint, it better to support class check. IMO.
Almost all cases are simple class equality check. So it wouldn't hurt
performance much, I suppose.

Regards,

--
Yasuo Ohgaki
yohg...@ohgaki.net

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to