Re: RFC: Short syntax for Arrays (redux)
| From: | Arvids Godjuks | Date: | Thu, 02 Jun 2011 10:49:06 +0000 |
| Subject: | Re: RFC: Short syntax for Arrays (redux) | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-52752@lists.php.net to get a copy of this message | ||
2011/6/2 Ford, Mike <M.Ford@leedsmet.ac.uk>:
>> -----Original Message-----
>> From: John Crenshaw [mailto:johncrenshaw@priacta.com]
>> Sent: 01 June 2011 23:00
>>
> skip
>
>> 4. The format most consistent with other languages is JSON
>
> Again, matter of experience. Last time I counted, I'd used upward of
> 30 different programming languages and dialects, some of which had
> very bizarre ways of representing things, and none of which (apart
> from Javascript!) used a JSON-like array-literal syntax. And,
> actually, I *want* my PHP arrays to look different from my
> Javascript/JSON arrays, especially as I might be looking at both as
> part of the same project -- I *want* a big data structure to scream
> "I'm PHP" or "I'm Javascript/JSON" at me, to help trigger my
> brain
> into the right programming mode.
>
> All of this is just IMHO, of course, and probably a lot more than my
> regulation 2 pennorth, but there you go.
>
> Cheers!
>
> Mike
My thinking too. Mixind PHP arrays & JS JSON in one file with same
syntax will be a major headache in the future for many.