Re: simpler syntax for arrays
| From: | jay | Date: | Thu, 18 Dec 2008 01:38:17 +0000 |
| Subject: | Re: simpler syntax for arrays | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42322@lists.php.net to get a copy of this message | ||
On Thu, 2008-12-18 at 02:26 +0100, Lars Strojny wrote:
> Hi Jay,
>
> Am Donnerstag, den 18.12.2008, 03:18 +0200 schrieb jay:
> [...]
> > okey. another syntax:
> >
> > myfunc($('key1'=>'val1', 'key2'=>'val2',
> > ...));
> >
> > this can be implemented just as a shortcut for the array keyword. i
> > think it won't be very hard to extend syntax for the dollar sign.
> >
> > my idea is to shorten the syntax. no matter how it will be achieved.
>
> Obviously you preferred not to read the RFC and you did not read the
> related mailinglist threads. Anyway, to shorten things a bit: it has
> been discussed this year, we decided against it, things are settled.
>
> Thanks for your attention,
> Lars
okey. it's you right to be against such simplification. but anyway it'd
be nice to have more simple and clear syntax. i hope you'll get back to
this idea in future. thanks for your replies.
regards,
jay