Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11000 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4991 invoked by uid 1010); 8 Jul 2004 23:13:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 4947 invoked by uid 1007); 8 Jul 2004 23:13:52 -0000 Message-ID: <20040708231352.4946.qmail@pb1.pair.com> To: internals@lists.php.net Date: Thu, 08 Jul 2004 19:13:28 -0400 User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 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> <899007038.20040709002653@marcus-boerger.de> In-Reply-To: <899007038.20040709002653@marcus-boerger.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 130.58.81.153 Subject: Re: [PHP-DEV] what happened to that new isset() like language construct From: contact_marcos@yahoo.es (Marc Richards) Marcus Boerger wrote: > > 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. > Me either. What I am saying is that there is no need for two versions. $a = $b ?: NULL; is as concise as the first version, and as explicit (in terms of the NULL) as the second. Marc