Name

about:strings

Description

user > "hello, world"
it: "hello, world"
user > :d
#s( :members #s( :length 12 )
    :type "System.String"
    :value "hello, world" )

user > "hello, \"world\""
it: "hello, \"world\""
user > @"hello, ""world"""
it: "hello, \"world\""
user > """hello, "world" """
it: "hello, \"world\" "
user > #q{hello, "world"}
it: "hello, \"world\""
user > #q(hello, "world")
it: "hello, \"world\""
user > #q[hello, "world"]
it: "hello, \"world\""
user > #q<hello, "world">
it: "hello, \"world\""

Strings with real quotes can have interpolation markers:

user > (var s "wo")
it: s
user > "hello, ${s}rld"
it: "hello, world"
user > "hello, <%=s%>rld"
it: "hello, world"
user > @"hello, <%(print #\w)(print #\o)%>rld"
it: "hello, world"

Strings with interpolation markers are not literals but code:

user > (quote "hello, ${s}rld")
it: (string "hello, " s "rld")