[ERR5RS] Rationale and ease of use
Lynn Winebarger
owinebar at gmail.com
Sun Sep 16 09:45:57 PDT 2007
On 9/8/07, AndrevanTonder <andre at het.brown.edu> wrote:
> This is only true in a REPL setting. To extend this to a compiler-only
> Scheme implementation is possible, but would require the compiler to evaluate
> each definition before continuing to compile subsequent expressions.
> Imagine the following program:
>
> (define pi-to-four-billion-digits
> (calculation-taking-40-days))
>
> (define-syntax format-result
> (lambda (e) (syntax-case e -----)))
>
> (format-result pi-to-four-billion-digits)
I am slow. Why is this issue not also a problem for:
(define-syntax format-result
(lambda (e)
(let loop () (loop))
(syntax-case e -----)))
(format-result car)
Thanks,
Lynn
More information about the Err5rs
mailing list