caching works correctly

This commit is contained in:
2025-10-11 17:24:11 -06:00
parent a942d79869
commit 673bc3ae52
5 changed files with 172 additions and 17 deletions
+5
View File
@@ -59,6 +59,11 @@ eval_sexp(Args = [{snowflake, <<"define">>}, {pattern, Pat}, Expr], Ctx0) ->
Error ->
Error
end;
eval_sexp(_Args = [{snowflake, <<"undefine">>}, {pattern, Pat}], Ctx0) ->
case wfc_eval_context:undefine(Pat, Ctx0) of
{ok, NewContext} -> {ok, noop, NewContext};
Error -> Error
end;
eval_sexp([{snowflake, SF} | Args], Ctx0) ->
% first evaluate the arguments individually
case eval_sexp_args(Args, Ctx0, []) of