Skip to content

Commit

Permalink
Add type checking for named let.
Browse files Browse the repository at this point in the history
  • Loading branch information
tadd committed Feb 22, 2025
1 parent 8af36b5 commit 4b1bdb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions schaf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1435,6 +1435,7 @@ static Value let(Value *env, const char *func, Value bindings, Value body)

static Value named_let(Value *env, Value var, Value bindings, Value body)
{
expect_type("let", TYPE_PAIR, bindings);
Value tr = transpose_2xn(bindings);
Value params = car(tr), symargs = cadr(tr);
Value proc = value_of_closure(*env, params, body);
Expand Down

0 comments on commit 4b1bdb2

Please sign in to comment.