Fork me on GitHub
#nextjournal
<
2021-11-19
>
hugod04:11:55

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?

jackrusher13:11:34

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

hugod16:11:29

stdout, ie *out*

jackrusher19:11:32

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...

borkdude12:11:43

perhaps you can use with-out-str?

hugod12:11:55

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