Re: RFC: Short syntax for Arrays (redux)
| From: | Sanford Whiteman | Date: | Thu, 02 Jun 2011 18:24:23 +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-52800@lists.php.net to get a copy of this message | ||
> Also matter of opinion, and of experience. Apart from the fact that
> my use of jQuery amounts to a few weeks out of a (mumble)-year
> programming career, no I don't use pure JSON for it - Javascript
> object literals, yes, but not pure JSON.
It's not just you. The claim that people regularly pass JSON strings
within JS frameworks is comical; it would be about as smart as passing
serialized PHP vars between PHP functions.
> 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.
+1
-- S.