Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51862 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93578 invoked from network); 11 Apr 2011 12:52:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Apr 2011 12:52:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=mail_ben_schmidt@yahoo.com.au; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mail_ben_schmidt@yahoo.com.au; sender-id=unknown; domainkeys=good Received-SPF: error (pb1.pair.com: domain yahoo.com.au from 98.139.91.194 cause and error) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mail_ben_schmidt@yahoo.com.au X-Host-Fingerprint: 98.139.91.194 nm8-vm0.bullet.mail.sp2.yahoo.com Received: from [98.139.91.194] ([98.139.91.194:47567] helo=nm8-vm0.bullet.mail.sp2.yahoo.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C7/A8-29000-979F2AD4 for ; Mon, 11 Apr 2011 08:52:10 -0400 Received: from [98.139.91.61] by nm8.bullet.mail.sp2.yahoo.com with NNFMP; 11 Apr 2011 12:52:06 -0000 Received: from [98.139.91.49] by tm1.bullet.mail.sp2.yahoo.com with NNFMP; 11 Apr 2011 12:52:06 -0000 Received: from [127.0.0.1] by omp1049.mail.sp2.yahoo.com with NNFMP; 11 Apr 2011 12:52:06 -0000 X-Yahoo-Newman-Id: 402822.19256.bm@omp1049.mail.sp2.yahoo.com Received: (qmail 43887 invoked from network); 11 Apr 2011 12:52:06 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.au; h=DKIM-Signature:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=c78yNAKenrcpJS9cEImiX9/5P4mChjRxjfRgHRI1MKMBoXx+uL+5B4M4Dn4FhHrbwNLwDH3bQ6uBAtLlU5yMzOkNNuyNcvGIfPhjLUoP3R7XBrlQG2Um1mYBG07LVApy9jwY0XFf7i6mIMRLoVUGIEhhmKMIXHGmbP+7YZacfAo= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s1024; t=1302526325; bh=ISOwe/jTZUMgD/pSc3EsPwEkHUV9cLfCCjb8EGovdDw=; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=ir6hrdo1vsabkTxzHIOCFbMquFTviXbw3CsOExy/BSEdpKuasyUT6Tv95DB4X6Y5y2GKUfPwYB5bl4j50w93U/noRa3OpFi8B2O8JCgjG9woDhyUixsc/fVuWdK+L4M3W2YiilKg7COcang3HHQqFQusXhvKGNnm8+JMiyi9JZo= Received: from thought.local (mail_ben_schmidt@124.168.105.104 with plain) by smtp141.mail.mud.yahoo.com with SMTP; 11 Apr 2011 05:52:05 -0700 PDT X-Yahoo-SMTP: enFMnPSswBAexaHyzgobwuUTrYOhZdJ0KRA2SjA- X-YMail-OSG: akxhC6QVM1ntwUCHbTNEFeam7IfhAohQVLlbOlxYCCFZnnN u5.aAl8yTA4OUKxPzsowallzYtuWrLqAP0r..Lg2l3Q1KoTAWfnKZ43gbR8G qH1REEt6Fu_XZge94Ze2yDS..fHkoRvhZdwA8l7tIx0ahTs1iJXR16kKzyTb mrsTaieYB5opLWo_e_FJCL_FHZLewUixpoAhNXPW8FJV19ZhaxL8u4Zd82Ab 0v1oDop6HdmnYy_41WpsRjHzSjfpBrt_KVEwUN5VtVbofsNB_TdH88NQJiAj wUqMn4t02yl.3BQA9uCrNrzGHPfLo4CqtOStgue_37mDVsMWSrBTtTBxhvsr uqyZulk1w.Z4HU54qYFwTg0lHFA-- X-Yahoo-Newman-Property: ymail-3 Message-ID: <4DA2F979.7000304@yahoo.com.au> Date: Mon, 11 Apr 2011 22:52:09 +1000 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 ThunderBrowse/3.3.5 MIME-Version: 1.0 To: Hannes Landeholm CC: Stas Malyshev , internals@lists.php.net References: <4DA26602.6080303@lorenso.com> <34592245-F3F3-44B6-9139-4F217CA9C962@gmail.com> <4DA26BB1.3050003@sugarcrm.com> <4DA2F1FC.1020805@yahoo.com.au> In-Reply-To: <4DA2F1FC.1020805@yahoo.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] proposed access modifier "silent" ... was: Re: [PHP-DEV] Implicit isset/isempty check on short-ternary operator From: mail_ben_schmidt@yahoo.com.au (Ben Schmidt) > If doing the suppression of undefined notices be better if the ? was put after the > opening square bracket, thereby removing the ambiguity (which I think would be > more troublesome than you think)? $array[?"foo"] I suppose a non-array-specific version would be to put it after the $. $?variable $?array['foo']['bar'] I wonder if you could even use : with this syntax. $?variable:"default" $?array['foo']['bar']:"default" Perhaps using it in function definitions is something to consider, too, for a callee-specified undefined-notice-silencing mechanism. function foo($?arg) { } Doesn't work for the variable arguments case, though, without resorting to something IMHO ugly/hard-to-read-and-understand like: function foo(?) { } It's another idea to throw in the mix, though. I do think the 'silent' modifier that was the original suggestion in this thread is worth further thought. It may well allow userland functions to be developed, which might be a benefit. I personally, though, think a modified ternary operator like the proposed ??: or the syntax above, is better. Ben.