Re: [RFC][Vote] Return Types

From: Date: Wed, 05 Nov 2014 22:02:10 +0000
Subject: Re: [RFC][Vote] Return Types
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-78751@lists.php.net to get a copy of this message
> On 5 Nov 2014, at 21:43, Dmitry Stogov <dmitry@zend.com> wrote: > > On Thu, Nov 6, 2014 at 12:05 AM, Stas Malyshev <smalyshev@sugarcrm.com> > wrote: > >> Hi! >> >> >>> Do we always load the class in the hint? We could perhaps only do it >>> for inheritance checks? >> >> No, classes are not loaded for type checks, since it would be pointless >> - if the class is not loaded, you could not have a value of that type, >> so if the class is not present, the answer is "no". > > It's not true anymore, with this proposal. Thus my suggestion that we only load for the inheritance checks (and only if the type differed). We don't need to normally. -- Andrea Faulds http://ajf.me/

« previous php.internals (#78751) next »