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

From: Date: Thu, 08 Jul 2004 22:26:53 +0000
Subject: Re: what happened to that new isset() like language construct
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-10995@lists.php.net to get a copy of this message
Hello Marc, Thursday, July 8, 2004, 11:54:59 PM, you wrote: > Marcus Boerger wrote: >> >> ?: would require a default value. ifsetor() allows to assume NULL hence >> the latter is more powerfull. Hence id like to see a new keyword. >> > Well am not sure what you mean by more powerful, but the character count > is about the same: > $a = ifsetor($b); it would allow two versions by having the default optional: 1) $a = ifsetor($b) 2) $a = ifsetor($b, NULL) > $a = $b ?: NULL; How would the operator do the second? Will it look like the following? $a = $b ?:; I defitively don't want that. > And the second one has the advantage of being more verbose. That's why ifsetor has two versions. regards marcus

« previous php.internals (#10995) next »