nextjournal

borkdude 2021-11-19T12:03:43.123400Z

perhaps you can use with-out-str?

2021-11-19T12:31:55.123500Z

Certainly possible, but a little intrusive. It might also be nice to see both output and return value.

2021-11-19T04:27:55.123Z

Hi. I’m trying out Clerk, and I’m wondering if it is possible to show the output of a form, rather than its return value?

2021-11-24T19:43:32.127400Z

Ah, okay. Given that *out* is global, mutable, and thread-unsafe, we are unlikely to try to support that. You can, of course, use with-out-str if you need to capture output side-effects from an impure function...

2021-11-21T13:42:34.125400Z

Just to make sure I understand, what do you mean by "output" in this context?

2021-11-21T16:54:29.127Z

stdout, ie *out*