IRC channel logs

2025-07-06.log

back to list of logs

<dodoyada>I'm just going back to fibers with repl inside, I'll live with the inversion since I don't make make changes to the startup code
<mwette>\me is realizing nyacc needs a writeup to explain architecture for using cdata w/ ffi-compiled code.
<graywolf>Hello :) How can I write a procedure that does not return anything? Is that possible?
<Arsen>there's the unspecified value but I am not sure you can produce it "cleanly"
<Arsen>(you can do (when #f 123) or such but that's not pretty)
<graywolf>That does not seem to work though :/
<graywolf>(let-values ((x ((lambda () (when #f 123))))) (pk x)) still returns a list of one element
<graywolf>(let-values is in srfi-11)
<Arsen>well, yeah
<Arsen>unspecified is a "value"
<Arsen>did you expect that not to produce a list?
<graywolf>Oh, well, thanks for rubber ducking for me :)
<graywolf>(let-values ((x ((lambda () (values))))) (pk x))
<graywolf>Well I wanted *some* way to produce an empty list. I now realized I can just use (values), did not occur to me I can call it without passing anything
<rlb>I've also seen (if #f #f), fwiw.