4 ms·
> Not a fan of the bare words instead of strings either, which means this cannot be naively evaluated by a Lisp. Most Lisps (all that I know of) have a way to
by Zambyte 3y ago
> Not a fan of the bare words instead of strings either, which means this cannot be naively evaluated by a Lisp.
Most Lisps (all that I know of) have a way to convert symbols to strings. The hard part is resolving the ambiguity between what should be text, and what should be treated as an HTML node. Like, what if I wanted to actually write the string "(b thanks)" on a page? R7RS could probably do this with the pipe identifier syntax[0], but I think R7RS is fairly unique in its capability for identifiers (and thus symbols) with such a wide range of supported characters.
[0] https://standards.scheme.org/corrected-r7rs/r7rs-Z-H-4.html#TAG:__tex2page_sec_2.1 https://standards.scheme.org/corrected-r7rs/r7rs-Z-H-4.html#...
- sph 3y agoBare words are fine until you have a variable with the same name as your bare word, so you need additional syntax to determine if you're referencing a variable, or it is just text.
- lelanthran 3y ago> Bare words are fine until you have a variable with the same name as your bare word, so you need additional syntax to determine if you're referencing a variable, or it is just text. This doesn't have variables. Or functions.
- mtreis86 3y agoThe space you embed it into might
- em-bee 3y agoyou would normally quote the whole s-expression to make sure it is interpreted as data only. '(look at this: no variables)
- Zambyte 3y agoTo expand on this, Lisps also usually have a quasiquotation system to make it easy to embed data from the host system into an s-exp. `(look ,(get-parent): some variables like ,x)