Skip to content

Grafcube/racket-string-interpolation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}".

About

Racket package for string interpolation syntax in string literals.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy