Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37832 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53280 invoked from network); 23 May 2008 15:32:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 May 2008 15:32:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=tony@daylessday.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tony@daylessday.org; sender-id=pass Received-SPF: pass (pb1.pair.com: domain daylessday.org designates 89.208.40.236 as permitted sender) X-PHP-List-Original-Sender: tony@daylessday.org X-Host-Fingerprint: 89.208.40.236 mail.daylessday.org Linux 2.6 Received: from [89.208.40.236] ([89.208.40.236:44620] helo=daylessday.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 60/12-35754-883E6384 for ; Fri, 23 May 2008 11:32:26 -0400 Received: from [192.168.1.34] (unknown [91.78.182.62]) by daylessday.org (Postfix) with ESMTP id 4071F6400F2; Fri, 23 May 2008 19:32:21 +0400 (MSD) Message-ID: <4836E376.4040906@daylessday.org> Date: Fri, 23 May 2008 19:32:06 +0400 User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: "Astro [GTalk]" CC: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP6 new syntax use suggestion From: tony@daylessday.org (Antony Dovgal) First of all, this was already discussed, search the archives before posting your suggestions. Second, I still see very little sense in suggestions not supported by patches. You can add your +/-1 for ever, but it won't be implemented until someone sits down and writes the patch. And finally, this particular syntax would require us to change arrays to some kind of resources so that they could be indicated by some unique index (that's what was made to objects and now they can be referenced as func()->attr). This apparently means overall source code rewrite only to enable this syntax of doubtful usefulness. On 23.05.2008 17:35, Astro [GTalk] wrote: > Hello, > > I have a suggestion for upcoming PHP6 as it's a major version change. I > suggest a possibility to use this (example): > > $host = parse_url('http://someurl.com')['host']; > > instead of > > $host = parse_url('http://someurl.com'); > $host = $host['host']; > > Now it returns a syntax error. -- Wbr, Antony Dovgal