I agree, doing lots of if statements gets bloated. Someone would only
use this method if they was comfortable with it either returning null or
the desired result.
On 11/12/2014 16:00, Rowan Collins wrote:
guilhermebla...@gmail.com wrote on 11/12/2014 15:57:
Not trying to demerit the proposal, but accepting ?-> and black magic
just
seems wrong, very wrong.
You need to write defensive code, not rely on the language to do that
for
you.
But surely if you're consciously deciding to use this feature, it *is*
defensive code - just defensive code involving less copy-and-paste of
if ( ! is_null($blah) )...
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php