Name

about:strings

Description

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

user 2 > "hello, \"world\""
it: "hello, \"world\""
user 3 > @"hello, ""world"""
it: "hello, \"world\""
user 4 > """hello, "world" """
it: "hello, \"world\" "
user 5 > #q{hello, "world"}
it: "hello, \"world\""
user 6 > #q(hello, "world")
it: "hello, \"world\""
user 7 > #q[hello, "world"]
it: "hello, \"world\""
user 8 > #q<hello, "world">
it: "hello, \"world\""

Strings with real quotes can have interpolation markers:

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

Strings with interpolation markers are not literals but code:

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