aboutsummaryrefslogtreecommitdiff
path: root/neb/std/repl.py
diff options
context:
space:
mode:
authormryouse2022-07-29 19:56:22 +0000
committermryouse2022-07-29 19:56:22 +0000
commit9fd33f4864310c017a1013f8d18635c1e784f0ab (patch)
tree8cc89071be5e6214e1039df87783000c10540123 /neb/std/repl.py
parent8c7ff22c9cce5478eb20046b7f5f649f529cdf95 (diff)
have builtins return :nil when appropriate
Diffstat (limited to 'neb/std/repl.py')
-rw-r--r--neb/std/repl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/neb/std/repl.py b/neb/std/repl.py
index 0274e48..2979c5b 100644
--- a/neb/std/repl.py
+++ b/neb/std/repl.py
@@ -15,9 +15,9 @@ def interpretHowTo(symbol, args, env, ns):
print(des)
else:
print("\n".join(des))
- return List([])
+ return Nil()
-howto_func = Builtin("howto", interpretHowTo, [Arg("symbol", TypeEnum.ANY)], return_type=Type(":list"))
+howto_func = Builtin("howto", interpretHowTo, [Arg("symbol", TypeEnum.ANY)], return_type=Type(":nil"))
howto_multi = MultiFunction("howto")
howto_multi.register(howto_func)
REPL.register("howto", howto_multi)