diff options
| author | Rose Hogenson <rhogenson@google.com> | 2022-07-12 21:44:41 -0700 |
|---|---|---|
| committer | Rose Hogenson <rhogenson@google.com> | 2022-07-12 21:44:41 -0700 |
| commit | 77a47304368cd716c05507ce9cebbbab3a2b965a (patch) | |
| tree | 73a0be02c2ee1d280823270a43df6d094042a258 /csc/match-test.csc | |
| parent | 6b32cfd7754e1f420abf5d64beb5109d951162c7 (diff) | |
| download | chromatopelma-77a47304368cd716c05507ce9cebbbab3a2b965a.tar.zst | |
Remove redundant parentheses in the match macro.
I'm marginally reducing verbosity with this change,
without sacrificing readability.
Diffstat (limited to 'csc/match-test.csc')
| -rw-r--r-- | csc/match-test.csc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/csc/match-test.csc b/csc/match-test.csc index c5314ce..d4da153 100644 --- a/csc/match-test.csc +++ b/csc/match-test.csc @@ -73,8 +73,8 @@ 3 (match 'b ((! 'a) 1) - ((! 'b) (when #f) 2) - ((! 'b) (when #t) 3) + ((! 'b) when #f 2) + ((! 'b) when #t 3) (_ 4)))) @@ -82,8 +82,8 @@ (assert-equal 2 (match 10 - (n (when (= 1 n)) 1) - (n (when (= 10 n)) 2) + (n when (= 1 n) 1) + (n when (= 10 n) 2) (_ 3)))) |
