From 9fd33f4864310c017a1013f8d18635c1e784f0ab Mon Sep 17 00:00:00 2001 From: mryouse Date: Fri, 29 Jul 2022 19:56:22 +0000 Subject: have builtins return :nil when appropriate --- neb/std/repl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'neb/std/repl.py') 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) -- cgit v1.2.3