A `define/delay` macro for this might be a good addition to `racket/promise`:
(define-simple-macro (define/delay id:id expr:expr) (begin (define p (delay expr)) (define (id) (force p)))) (define/delay conf (with-input-from-file "db.conf" read-json)) (conf) ;; forces promise -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

