Skip to content

Conversation

@jordancarlin
Copy link
Collaborator

The latest version of Sail made bit and bits(1) equivalent. Replace all instances of bitzero and bitone with 0b0 and 0b1 for consistency.

I haven't decided whether we should standardize on bit or bits(1) for single-bit types. Anyone have an opinion? For now, I've gone with bits(1) just because it is more consistent with the other bitvectors.

@jordancarlin jordancarlin added the refactor Code clean up label Jan 13, 2026
Copy link
Collaborator

@arichardson arichardson left a comment

Choose a reason for hiding this comment

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

LGTM. No opinion on bit vs bits(1), both of those seem fine to me. If it was really common, I'd vote for bit but since there only seem to be about 20 uses, might as well use bits(1) for consistency.

@github-actions
Copy link

Test Results

2 115 tests  ±0   2 115 ✅ ±0   22m 30s ⏱️ -53s
    1 suites ±0       0 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit 49687c7. ± Comparison against base commit 4bae6b2.

Copy link
Collaborator

@pmundkur pmundkur left a comment

Choose a reason for hiding this comment

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

bits(1) seems fine to me. We should edit the PR message before merging.

@jordancarlin jordancarlin changed the title Replace bitzero and bitone with 0b0 and 0b1 Use bits(1) and 0b0/0b1 consistently in place of bit and bitone/bitzero Jan 14, 2026
@jordancarlin jordancarlin added the will be merged Scheduled to be merged soon if nobody objects label Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Code clean up will be merged Scheduled to be merged soon if nobody objects

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants