Re: PHP6 new syntax use suggestion

From: Date: Fri, 23 May 2008 15:32:06 +0000
Subject: Re: PHP6 new syntax use suggestion
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-37832@lists.php.net to get a copy of this message
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

« previous php.internals (#37832) next »