guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: define-macro syntax error


From: Ian Price
Subject: Re: define-macro syntax error
Date: Tue, 12 Feb 2013 10:11:29 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

Akop Pogosian <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]