Akop Pogosian <apogos...@gmail.com> writes:

> (define-macro when
>   (lambda (test . branch)
>     `(if ,test
>          (begin ,@branch))))

FWIW, `when' is already available in Guile 2, and define-macro is
generally frowned upon. For these ultra-simple cases, prefer
define-syntax-rule.

-- 
Ian Price -- shift-reset.com

"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"

Reply via email to