Skip to content

Commit 84733f7

Browse files
committed
mylis_2: tail-call optimization implemented
1 parent bb01184 commit 84733f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mylis/mylis_2/lis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ def evaluate(exp: Expression, env: Environment) -> Any:
237237
try:
238238
return proc(*values)
239239
except TypeError as exc:
240-
msg = (f'{exc!r} invoking {proc!r}({args!r}):'
241-
f'\n{lispstr(exp)}\nAST={exp!r}')
240+
msg = (f'{exc!r}\ninvoking: {proc!r}({args!r}):'
241+
f'\nsource: {lispstr(exp)}\nAST: {exp!r}')
242242
raise EvaluatorException(msg) from exc
243243
case _:
244244
raise InvalidSyntax(lispstr(exp))

0 commit comments

Comments
 (0)