Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 0b prefix to Show output of BitVector #1785

Merged
merged 3 commits into from
Apr 22, 2021
Merged

Conversation

martijnbastiaan
Copy link
Member

No description provided.

@martijnbastiaan martijnbastiaan changed the title Better bv show Add 0b prefix to Show output of BitVector Apr 21, 2021
This makes the rendered string a copyable expression for fully defined
`BitVector`s.

Related issue: #1773
@martijnbastiaan martijnbastiaan force-pushed the better-bv-show branch 2 times, most recently from b4978dc to 2181886 Compare April 22, 2021 10:12
`Show` instance of `BitVector` already uses it
The new implementation doesn't require two consecutive reverses.

Fixes: `show` on `BitVector 0` now produces a non-empty result
Copy link
Contributor

@alex-mckenna alex-mckenna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@martijnbastiaan martijnbastiaan merged commit bb73fd3 into master Apr 22, 2021
@martijnbastiaan martijnbastiaan deleted the better-bv-show branch April 22, 2021 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants