-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
matchtree: switch to enum for matches signature (#691)
The pair of bools (matches, sure) often was quite hard to reason about. I think this came down to them often not being named at return sites, the names itself being too concise and that two booleans represents 4 possible states, but we only had two possible states. This commit uses a more verbose enum instead of booleans. From reading the diff back I find the code easier to reason about, so I think this is a good change. Test Plan: go test ./...
- Loading branch information
1 parent
3109882
commit 8801747
Showing
3 changed files
with
135 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters