On 24 April 2012 01:57, Igor Stasenko <siguctua@gmail.com> wrote:
Oh, i'm not subscribed to that list.
Anyways.. since i late on the party.. just wanna put my 2 cents here:
you don't need a literal dictionary syntax to be able to (de)serialize dictionaries.
Just a simple example:
we start from:
#( propertyName value )
ok, some values can be arrays:
#( propertyName ( array of values) )
and some values can be dictionaries:
#( propertyName #dict ( key1 value1 key2 value2 ... ) )
and to avoid ambugility, you can just put #symbol, to indicate that next element is symbol:
#( propertyName #symbol #dict)
so it won't try to construct a dictionary, but just use #dict as a symbol value for propery, same for #symbol itself:
#(propertyName #symbol #symbol)
... and of course there can be numerous other ways for doing that.
and sure.. you're free to introduce any other keywords to meet your needs... i.e. #( top #point (10 20)) will produce: { #top. 10@20 }. -- Best regards, Igor Stasenko.