Re:STON – Smalltalk Object Notation (2012)
by amelius on Wednesday March 15, 2017 @11:35AM
(#13876803)
Of course, but try to do it e.g. in JSON, and you'll see that the resulting representation quickly becomes convoluted. In contrast, the LISP notation is basically the same notation as you'd use in the language LISP itself. That's what I mean by "natural".
[ Parent
| on HN ]
Re:STON – Smalltalk Object Notation (2012)
by brudgers on Wednesday March 15, 2017 @12:17PM
(#13877170)
I'm not clear on its advantages for the serialization of Smalltalk objects. Would the deserializer be written in a Lisp?
Re:STON – Smalltalk Object Notation (2012)
by jimbokun on Wednesday March 15, 2017 @06:28PM
(#13880472)
You can treat the serialized S-expressions literally as Lisp code. The first token of the list could be the name of a macro, for example, that could expand into any kind of code you want to execute.
(So yeah, you better be really, really sure you control the data you are processing this way.)