Defun is now an alias for defn

This commit is contained in:
Christopher Allan Webber 2013-04-01 16:36:56 -05:00
parent 73695881a9
commit f8be07b643

View File

@ -27,6 +27,7 @@ from hy.models.list import HyList
@macro("defn")
@macro("defun")
def defn_macro(tree):
return HyExpression([HySymbol("def"),
tree[1], HyExpression([HySymbol("fn")] + tree[2:])])