Re: Re: New Operator

From: Date: Tue, 14 Mar 2006 22:43:56 +0000
Subject: Re: Re: New Operator
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-22434@lists.php.net to get a copy of this message
Brian Moon wrote:
Oh, you want an operator to do that? Does some other language have this that we are wanting to copy here?
IIRC C# 3.0 adds a new operator ?: written as "foo = bar ?: 'default value';". I tried to search a resource with some documentation about this new operator, but Google can't search for "?:" and live.com is dead. BTW the same operator can be found in Derick's meeting notes for PHP 6.0: http://www.php.net/~derick/meeting-notes.html#ifsetor-as-replacement-for-foo-isset-foo-foo-something-else nico

« previous php.internals (#22434) next »