From d0530b0e7e6866cdc0075a3e506b875a47aa5d53 Mon Sep 17 00:00:00 2001 From: gilch Date: Thu, 3 Aug 2017 19:04:30 -0600 Subject: [PATCH] add comment macro --- hy/core/macros.hy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hy/core/macros.hy b/hy/core/macros.hy index 82cf3ae..c533b02 100644 --- a/hy/core/macros.hy +++ b/hy/core/macros.hy @@ -216,3 +216,7 @@ (setv decorators (cut expr None -1) fndef (get expr -1)) `(with-decorator ~@decorators ~fndef)) + +(defmacro comment [&rest body] + "Ignores body and always expands to None" + None)