[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: when and unless
From: |
Ludovic Courtès |
Subject: |
Re: when and unless |
Date: |
Sat, 07 Jan 2012 23:36:42 +0100 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) |
Hi!
Andy Wingo <address@hidden> skribis:
> Are you OK with adding them like this:
>
> (define-syntax (when condition stmt stmt* ...)
> (if condition (begin stmt stmt* ...)))
>
> (define-syntax (unless condition stmt stmt* ...)
> (if (not condition) (begin stmt stmt* ...)))
Yes!
(‘define-syntax-rule’ I suppose?)
Ludo’.