chickadee » string-utils » set-sharp-string-interpolation-syntax

set-sharp-string-interpolation-syntax PROCprocedure

Extends the read-syntax with #"..." where the "..." is evaluated using (PROC "..."). When PROC is #f the read-syntax is cleared. When PROC is #t then PROC is identity.

(use string-interpolation-syntax utf8-string-interpolation)

(set-sharp-string-interpolation-syntax string-interpolate)
;#"foo #(+ 1 2)bar #{(and 1 2)} baz"
;=> "foo 3bar 2 baz"