Elektrine lite

← Feed

@mousebot@todon.nl

Post #2849138

2026-05-07 16:29 UTC

@pkw but when returns unspecified if it fails, i find it incomprehensible, bonkers, nuts! :)

Replies (2)

  • @pkw@snac.d34d.net 2026-05-07 16:34

    That's what i mean, scheme makes me not want to use "when" or "unless". To me the scheme idiom points out that almost always "if" is what you want. (with both clauses filled in) I've been meaning to track this down, what does when/unless return in common-lisp? (on the negative clause)

    Open ##2849139

  • @zardoz03@mastodon.online 2026-05-07 16:41

    @mousebot@todon.nl @pkw (define-syntax when (syntax-rules () ((_ test body ...) (if test (begin body ...) #f )))) :D

    Open ##2849153