From 3bad6c14ee06d398ab48e3c37f986d950bcbaed4 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sat, 18 Jan 2014 22:57:29 +0100 Subject: [PATCH] hy/core/macros.hy: Reimplement (unless) in terms of (if-not) Signed-off-by: Gergely Nagy --- hy/core/macros.hy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hy/core/macros.hy b/hy/core/macros.hy index fcaa59a..bdeb288 100644 --- a/hy/core/macros.hy +++ b/hy/core/macros.hy @@ -152,7 +152,7 @@ (defmacro unless [test &rest body] "Execute `body` when `test` is false" - `(if ~test None (do ~@body))) + `(if-not ~test (do ~@body))) (defmacro yield-from [iterable]