1 Usage
8.18
top
← prev up next →

string-interpolationπŸ”— i

Grafcube

Adds string interpolation syntax for all string literals.

Based on this comment but modified to include escape syntax.

1UsageπŸ”— i

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

 
(requirestring-interpolation)
 
(define(greetname)"Hello@{name}")
(greet"Racket")

This results in "HelloRacket".

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

 
(requirestring-interpolation)
 
(define(greetname)"Hello@\\{name}")
(greet"Racket")

This results in "Hello@{name}".

top
← prev up next →

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /