Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Scheme Output/String Formatting Best Practices

Name: Anonymous 2014-08-28 5:46

What is your preference? Are there other alternatives possible by composing R7RS base library procedures and macros?

; R7RS compliant version
(import (scheme write))
(define world "World)
(for-each display `("Hello, " ,world "!\n")

; R7RS with SRFI 28/29/48 for formatted string templates
(import (scheme write)
(srfi 28))
(define world "World)
(display (format "Hello, ~a!\n" world))

Name: Anonymous 2014-08-29 1:55

>>4
Is that a reader extension? Looks like shit.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List