From 6a39bf6bacb776115d791b8ce0d3235b81420e92 Mon Sep 17 00:00:00 2001 From: mehbark Date: Tue, 13 Jun 2023 22:22:53 -0400 Subject: [PATCH] let's try this --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 24d9e75..4ef5371 100644 --- a/src/main.rs +++ b/src/main.rs @@ -475,6 +475,7 @@ fn could_match(vars: Option<&[Symbol]>, lhs: &Sexp, expr: &Sexp) -> bool { // type Matches<'src> = HashMap>; +// TODO: there. can. be. at most. one. match. // i'm happy that this is faster, but it might be worth going back to the per-variable thing fn matches<'src>(vars: &HashSet, lhs: &Sexp, expr: &'src Sexp) -> HashSet<&'src Sexp> { match (lhs, expr) {