Re: what happened to that new isset() like language

From: Date: Sat, 29 Oct 2005 23:13:09 +0000
Subject: Re: what happened to that new isset() like language
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-19835@lists.php.net to get a copy of this message
But what about the use of ? as an infix operator? that wouldn't work out so well because of the ternary ?: On 10/29/05, Arpad Ray <arpad@rajeczy.com> wrote: > For the assign-if-not-set operator, I like the idea of: > > $foo ?= 'bar'; > > ? implies a condition, and the = immediately following will raise a parse > error in older versions. > > There's admittedly potential for confusion with the ternary operator, but > since that's most commonly used for conditional assignment I think the > association isn't all negative. > > Arpad > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- ------------- buddhahead@gmail.com

« previous php.internals (#19835) next »