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:
parent
e90b24b73a
commit
3bad6c14ee
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user