Re: Type hinting

From: Date: Sat, 29 May 2010 08:33:07 +0000
Subject: Re: Type hinting
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-48563@lists.php.net to get a copy of this message
Am 28.05.2010 20:07, schrieb Stas Malyshev: > On top of that, your boilerplate throws exception. Strict typing would > error out. That's very different thing (exceptions can be handled > hierarchically, errors can't). So replacing that with strict type > probably won't do the same. The "optional scalar type hinting" would raise a catchable fatal error that could be converted to an exception. -- Sebastian Bergmann Co-Founder and Principal Consultant http://sebastian-bergmann.de/ http://thePHP.cc/

« previous php.internals (#48563) next »