Re: Make strict mode more strict?
| From: | Yasuo Ohgaki | Date: | Mon, 28 Dec 2015 20:40:19 +0000 |
| Subject: | Re: Make strict mode more strict? | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-89914@lists.php.net to get a copy of this message | ||
Hi all,
On Tue, Dec 29, 2015 at 5:28 AM, Yasuo Ohgaki <yohgaki@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
yohgaki@ohgaki.net