Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10995 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30834 invoked by uid 1010); 8 Jul 2004 22:26:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 30810 invoked from network); 8 Jul 2004 22:26:51 -0000 Received: from unknown (HELO mx.thebrainroom.net) (69.55.226.195) by pb1.pair.com with SMTP; 8 Jul 2004 22:26:51 -0000 Received: by mx.thebrainroom.net (Postfix, from userid 517) id 061111488035; Thu, 8 Jul 2004 15:26:50 -0700 (PDT) Received: from BAUMBART (p508EBB70.dip.t-dialin.net [80.142.187.112]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mx.thebrainroom.net (Postfix) with ESMTP id E14F61488033; Thu, 8 Jul 2004 15:26:47 -0700 (PDT) Date: Fri, 9 Jul 2004 00:26:53 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <899007038.20040709002653@marcus-boerger.de> To: Marc Richards Cc: internals@lists.php.net In-Reply-To: <20040708215523.38331.qmail@pb1.pair.com> References: <20040708002654.7442.qmail@pb1.pair.com> <1093095066.20040708032739@marcus-boerger.de> <20040708140845.13476.qmail@pb1.pair.com> <71425903.20040708205001@marcus-boerger.de> <20040708215523.38331.qmail@pb1.pair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on jc.thebrainroom.net X-Spam-Status: No, hits=0.8 required=5.0 tests=PRIORITY_NO_NAME autolearn=no version=2.63 X-Spam-Level: X-TBR-Filter: Virus scanned and defanged Subject: Re: [PHP-DEV] what happened to that new isset() like language construct From: helly@php.net (Marcus Boerger) 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