by ruste · 9y ago · 0 comments
Most of the major scheme implementations I've used have had real dynamic scoping of some sort. I don't think it's very well supported in the standard, but they all seem to have it as a proper language feature.
(with-output-to-string (*standard-output*)
... code ... )
Here, code's output to the default standard output stream is captured in a string.