Re: Implicit isset/isempty check on short-ternary operator

From: Date: Sun, 10 Apr 2011 14:45:35 +0000
Subject: Re: Implicit isset/isempty check on short-ternary operator
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17  Groups: php.internals 
Request: Send a blank email to internals+get-51855@lists.php.net to get a copy of this message
On Sun, 10 Apr 2011 16:04:06 +0200, Rune Kaagaard <rumi.kg@gmail.com> wrote:
Hey again Updated here as always https://gist.github.com/909711. I've tried to write down the goal of this new feature. Which patterns do we want to make easier to write? Do you agree with the goals I've set?
I think these shortcuts could be really useful for array elements, but for other variables I am really sceptical and I think they would do more harm than good. Generally I do not really see any reason why a variable should not be 'instanciated' before use. So +1 if this shortcut is implemented to only work for array elements. -1 for any other variable type. -- Ole Markus With

« previous php.internals (#51855) next »