From: Keith Packard Date: Sat, 19 Nov 2016 05:15:33 +0000 (-0800) Subject: altos/lisp: Empty lambda body is not an error X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=3fec65a3921b3783b250031b2824b4689b8635f9 altos/lisp: Empty lambda body is not an error It's not very exciting, but it's still legal Signed-off-by: Keith Packard --- diff --git a/src/lisp/ao_lisp_lambda.c b/src/lisp/ao_lisp_lambda.c index 67ad24ee..b164cd66 100644 --- a/src/lisp/ao_lisp_lambda.c +++ b/src/lisp/ao_lisp_lambda.c @@ -77,9 +77,6 @@ ao_lisp_lambda_alloc(struct ao_lisp_cons *code, int args) if (!lambda) return AO_LISP_NIL; - if (!code->cdr) - return ao_lisp_error(AO_LISP_INVALID, "missing parameters to lambda"); - if (!ao_lisp_check_argt(_ao_lisp_atom_lambda, code, 0, AO_LISP_CONS, 1)) return AO_LISP_NIL; f = 0;