dukeofgaming wrote:
Ok, I found that Ruby added support for a new JSONy syntax a little while
ago, this is interesting:

http://webonrails.com/2009/02/06/ruby-191-hash/

But it doesn't have anything to do with JSON interoperability.

I'd rather no have to learn ruby either, but a scan of that document would seem to indicate that THEIR problem that was fixed was one of the way things were incorrectly ordered after using 'associate'. I'm seeing '=>' as the 'associate' which makes perfect sense there, when they use ':' to indicate variables.

Add the warnings that "This only works if the key is a symbol." and one sees the sort of confusing mess that hopefully we are trying to avoid in PHP.

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

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

Reply via email to