about:strings
make-html > "hello, world"
it: "hello, world"
make-html > :d
#s( :members #s( :length 12 )
:type "System.String"
:value "hello, world" )
make-html > "hello, \"world\""
it: "hello, \"world\""
make-html > @"hello, ""world"""
it: "hello, \"world\""
make-html > """hello, "world" """
it: "hello, \"world\" "
make-html > #q{hello, "world"}
it: "hello, \"world\""
make-html > #q(hello, "world")
it: "hello, \"world\""
make-html > #q[hello, "world"]
it: "hello, \"world\""
make-html > #q<hello, "world">
it: "hello, \"world\""
Strings with real quotes can have interpolation markers:
make-html > (var s "wo")
it: s
make-html > "hello, ${s}rld"
it: "hello, world"
make-html > "hello, <%=s%>rld"
it: "hello, world"
make-html > @"hello, <%(print #\w)(print #\o)%>rld"
it: "hello, world"
Strings with interpolation markers are not literals but code:
make-html > (quote "hello, ${s}rld")
it: (string "hello, " s "rld")