1
0
Fork
You've already forked racket-string-interpolation
0
Racket package for string interpolation syntax in string literals. https://pkgd.racket-lang.org/pkgn/package/string-interpolation
  • Racket 100%
Grafcube 283853932e
Some checks failed
CI / Build on Racket 'current' (BC) (push) Failing after 13s
CI / Build on Racket 'stable' (BC) (push) Successful in 51s
CI / Build on Racket 'stable' (CS) (push) Successful in 1m16s
CI / Build on Racket 'current' (CS) (push) Successful in 1m15s
Update CI
2025年08月14日 19:56:26 +05:30
.github/workflows Update CI 2025年08月14日 19:56:26 +05:30
scribblings Add code and docs 2023年01月25日 19:43:16 +05:30
.gitignore Initial commit 2023年01月25日 19:42:43 +05:30
info.rkt Add unit tests 2023年03月06日 16:52:28 +05:30
LICENSE-APACHE Update Licenses 2023年03月06日 16:18:47 +05:30
LICENSE-MIT Update Licenses 2023年03月06日 16:18:47 +05:30
main.rkt Interpolate multiple expressions in a string 2024年03月05日 18:08:10 -05:00
README.md Initial commit 2023年01月25日 19:42:43 +05:30

string-interpolation for Racket

This package adds string interpolation to Racket string literals.

Based on this comment. Modified to also have escape syntax.

Use racket in strings with the "@{<code>}" syntax.

#lang racket
(require string-interpolation)
(define (greet name) "Hello @{name}")
(greet "Racket")

This results in "Hello Racket".

You can escape this with the "@\{<code>}" syntax.

#lang racket
(require string-interpolation)
(define (greet name) "Hello @\\{name}")
(greet "Racket")

This results in "Hello @{name}".