[ prog / sol / mona ]

prog


Marvin Minsky - The Beauty of the Lisp Language

287 2020-10-14 15:01

Post >>259 insist that JSON objects be declared inline to be parsed, instead of loading a string by function.
This is key example where 'reader macros' are touted as essential.
In reality;
JSON object = [
1, 2, 3, { "complex": 5, "object": [6, 7, 8] }, [[9], 10]
];

would be used as something like this:
JSON object = parseJson(" [
1, 2, 3, { \"complex\": 5, \"object\": [6, 7, 8] }, [[9], 10]
];")
Without adding any extra syntax/semantic extensions.
Just one function. Lisptards cannot fathom this approach is much simpler and efficient, and instead propose we need to learn to
write JSON inline, inside the C code for some esoteric reason.

301


VIP:

do not edit these