You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
321 B
Racket
15 lines
321 B
Racket
#lang racket/base
|
|
|
|
(provide report describe)
|
|
|
|
(define-syntax-rule (report var)
|
|
(begin
|
|
(displayln (format "~a = ~a" 'var var) (current-error-port))
|
|
var))
|
|
|
|
(require (prefix-in williams: describe))
|
|
|
|
(define (describe x)
|
|
(parameterize ([current-output-port (current-error-port)])
|
|
(williams:describe x))
|
|
x) |