Post #2849141
2026-05-07 16:40 UTC
@pkw ah sorry i misread your sentence about using when/unless less. elsewhere in thread i wondered why guile when doesn't return false, rather than unspecified.
Replies (1)
-
@pkw@snac.d34d.net 2026-05-07 16:47
Because it is not functional ... Unspecified is pointing out the code smell of it. If it returned false then it is basically an "if". That's how i see it anyways. I also return '() sometimes. Especially in the scheme html lib i'm using. I kinda miss common-lisp's spinnerrett where IIRC a you can use a when/unless and it just "disappears" on the negative path. In scheme I HAVE to use "if" or else (no-pun) the unspecified explodes the html generator. But i still like it.