-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The `Aligned` constructor to `SubWord` is morally equivalent to `SubWord 0 0`. While it is nice as a visual marker in code, it makes consuming `SubWord`s often more verbose/redundant than it needs be. This proposes removing it altogether, while preserving some readability with the `aligned` value. We could also add an `Aligned` pattern for `SubWord 0 _`, but at the moment, we never actually need to pattern-match on `Aligned`. It also makes it so `splitWord` and `getBitStringPartial` can take a `SubWord` as input, rather than the length and word separately, which looked a bit out of place.
- Loading branch information
Showing
1 changed file
with
23 additions
and
27 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