Re: Re: RFC: Short syntax for Arrays (redux)
| From: | Justin Carmony | Date: | Wed, 01 Jun 2011 15:00:09 +0000 |
| Subject: | Re: Re: RFC: Short syntax for Arrays (redux) | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-52681@lists.php.net to get a copy of this message | ||
In all seriousness, there is a vast majority of PHP developers who are not represented on this list.
I was surprised to see someone mentioning for calling for another vote so soon after this discussion
came up. Perhaps instead of debating on readability and usefulness, we actually do some research
with major PHP users to get their opinions? I'm not saying we should have every PHP user in the
world vote, but there are talented PHP developers who are not apart of the core that have valid and
insightful views and opinions.
So what I would first propose is we finalize the RFC because right now it is has two options, and
doesn't deal with objects. I think everyone is starting to agree "=>" is much more
uniform than ":", so lets drop the ":" from the RFC.
Then, lets request some feedback from reputable PHP developers, like authors of popular frameworks
and PHP solutions. This way we can get some real input from people who are not on the internals
email list. This can help those who make the decision on whether or not to accept the RFC aware not
only of their own personal opinion and preferences, but the opinions and preferences of the PHP
community as a whole.
I know I'm newer to the list, and don't want to step on any toes, but I think the RFC
process could really benefit from getting this type of feedback.
Justin Carmony
On Jun 1, 2011, at 8:37 AM, Philip Olson wrote:
>
> On Jun 1, 2011, at 7:30 AM, Ilia Alshanetsky wrote:
>
>> On Wed, Jun 1, 2011 at 4:27 PM, Sean Coates <sean@seancoates.com> wrote:
>>> This discussion seems to lack real-world examples…
>>>
>>> Derick wrote:
>>>> I'm still -1 on it. It makes absolutely unreadable code (yes, also in
>>>> JavaScript with f.e. MongoDB).
>>>
>>>
>>> Here's an actual snippet from my production code (which interfaces with
>>> ElasticSearch):
>>>
>>> http://paste.roguecoders.com/p/0747f2363c228a09e0ddd6f8ec52f2e8.html
>>>
>>> If you consider this readable, you're fare more literate than I will ever be (-:
>>
>> Using JSON syntax would only "maybe" make it more readable, and then
>> only because you would probably not format it on so many lines ;-)
>
> Maybe that could be a contest. Who can make this the prettiest, using either a proposed or
> current syntax. :)
>
> Regards,
> Philip
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>