3 ms·
For HTML and XML in S-expressions, people might want to consider standardizing on Oleg Kiselyov's SXML representation, as a lot of others have. https://okmij.o
by neilv 5y ago
For HTML and XML in S-expressions, people might want to consider standardizing on Oleg Kiselyov's SXML representation, as a lot of others have.
https://okmij.org/ftp/Scheme/xml.html#SXML-spec https://okmij.org/ftp/Scheme/xml.html#SXML-spec
SXML is a little harder to process in libraries, compared to some representations we initially try, but SXML turns out to be easier to use in practice, at least by users of the library. For example, splices can be much more efficient, and easier to do without making a programming error that's not detected statically.
You can also mimic it in syntax, like:
https://docs.racket-lang.org/html-template/ https://docs.racket-lang.org/html-template/
- nerdponx 5y agoBig +1 and thank you for reminding me to try making a Hy implementation.