2011/6/2 Ford, Mike <m.f...@leedsmet.ac.uk>:
>> -----Original Message-----
>> From: John Crenshaw [mailto:johncrens...@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.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to