hy/core/macros.hy: Reimplement (unless) in terms of (if-not)

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
This commit is contained in:
Gergely Nagy 2014-01-18 22:57:29 +01:00
parent e90b24b73a
commit 3bad6c14ee
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

View File

@ -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]