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
PGP.sig
Description: Signierter Teil der Nachricht