Re: Type hinting

From: Date: Fri, 04 Jun 2010 06:28:12 +0000
Subject: Re: Type hinting
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-48645@lists.php.net to get a copy of this message
On 04.06.2010, at 03:18, Daniel Convissor wrote: > On Thu, Jun 03, 2010 at 10:29:30AM -0400, Daniel Convissor wrote: >> Hi Folks: >> >> On Sat, May 29, 2010 at 08:34:26PM +0300, Zeev Suraski wrote: >>> >>> IMHO we shouldn't be getting to any kind of fatal error/exception >>> situation, which is why I like the idea of auto-conversion plus E_STRICT >>> in the 'weird conversion' scenarios >> >> E_STRICT doesn't cut it. > > And another reason E_STRICT won't serve this situation well: how are > userland error handlers supposed to pick out the type hinting conversion > problems from all of the other bazillion E_STRICT errors that come up? > Not very efficient. Same deal as E_NOTICE. Either you care about them or you dont. Anyway, in my weak typing proposal I also made an optional variant to get an E_FATAL instead of E_STRICT, though I personally do not see the need for it. regards, Lukas Kahwe Smith mls@pooteeweet.org

« previous php.internals (#48645) next »