Re: [Proposal] Modification to ?: functionality

From: Date: Tue, 26 Nov 2013 20:12:00 +0000
Subject: Re: [Proposal] Modification to ?: functionality
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-70429@lists.php.net to get a copy of this message
On 26/11/13 20:42, Pete Boere wrote:
My favourite one listed so far is: $foo ?= 'default';
I'd second that. +1
Bryan wrote:
I also thought about the fact that I often write a utility function to provide this functionality in my own code. The difference there is that I can remove the check and get the notices when debugging something. If this change were part of the language, that wouldn't be possible. Bryan It would be easy for xdebug to provide a setting enabling the notice.


« previous php.internals (#70429) next »