commit 6ef0482a0e4ed7c1906ad9b4a86175817289c0bf
parent c13c84f74bf57e6f19ec674f049b61740a62c7b6
Author: Ed van Bruggen <edvb@uw.edu>
Date: Mon, 7 Oct 2019 00:17:25 -0700
Allow for single symbol in lambda argument list
If lambda or macro are given a single symbol instead of list of
arguments, set symbol to any arguments given
Diffstat:
1 file changed, 0 insertions(+), 4 deletions(-)
diff --git a/tisp.c b/tisp.c
@@ -909,8 +909,6 @@ static Val
prim_lambda(Env env, Val args)
{
tsp_arg_min(args, "lambda", 2);
- if (car(args)->t != PAIR && !nilp(car(args)))
- tsp_warn("lambda: incorrect format, no argument list found");
return mk_func(FUNCTION, car(args), cdr(args), env);
}
@@ -918,8 +916,6 @@ static Val
prim_macro(Env env, Val args)
{
tsp_arg_min(args, "macro", 2);
- if (car(args)->t != PAIR && !nilp(car(args)))
- tsp_warn("macro: incorrect format, no argument list found");
return mk_func(MACRO, car(args), cdr(args), env);
}