8.16.0.1
formatted-string
#lang formatted-string | package: formatted-string |
The formatted-string language is a lang-extension extends racket string to formatted string.
For example, #lang formatted-string racket/base is a language like racket/base, except that for example "$(+ 1 2 3)" produces "6".
#lang formatted-string racket/base (define-values (x y z) (values 1 2 3)) "x = $x, y = $y, z = $z, (+ x y z) = $(+ x y z)"
produces "x = 1, y = 2, z = 3, (+ x y z) = 6"
However, sometimes we would like to write $ in string, in this case, you write \$ to escape from formatted string!