Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cautiously use
RecordWildCards
to simplify verification functions.
Use of the `RecordWildCards` extension can lead to less readable code, since it becomes harder for a reader to determine which fields have been "absorbed" into a record value at the point of construction. However, in the case of the post-condition verification functions affected by this commit, it's relatively easy to tell which fields are picked up, as the definition of each failure is always next to the function that fails. Therefore, we can safely use `RecordWildCards` to remove a bit of verbosity.
- Loading branch information
1 parent
0b465ad
commit ad613fa
Showing
1 changed file
with
7 additions
and
20 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