-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified implementation of error reporting
Now that errors aren't taken and replaced by a String - the original is stored and cloned as needed - we can simplify the implementation. Instead of NotYetEncountered and AlreadyEncountered, we can just have a single struct with a counteer (no enum needed). This massively simplifies the implementation Also, simplified the implemtnation of tests Also cleaned up ErrorState's Debug implementation so that users don't see the nuts and bolts inside the struct - they only see the important debugging info
- Loading branch information
Showing
3 changed files
with
32 additions
and
58 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