4 ms·
Does it use more JSON data types than arrays? The only examples are ["map", ....] I don't see any `{ }`, etc.
by oconnor0 15y ago
Does it use more JSON data types than arrays? The only examples are
["map", ....]
I don't see any `{ }`, etc.
- jes5199 15y agoYes, it supports object literals as hashmaps. I'll try to add some more examples, soon.
- benatkin 15y agoThere is only one other composite data type besides arrays: objects. I don't think these are being used for invoking functions, but I think it would be interesting to try.
- deleted 15y ago[deleted]
- jes5199 15y agoAn idea that I had was to use Objects to define namespaces, like when writing a library: { "myFunction": ["lambda", ...], "myFunction2": ["lambda", ...], } I can't decide if it has any advantage over the traditional "define" function, though.