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

Switch radix to an enum for easier formatting #1130

Merged
merged 1 commit into from
Mar 14, 2022
Merged

Switch radix to an enum for easier formatting #1130

merged 1 commit into from
Mar 14, 2022

Conversation

jonmeow
Copy link
Contributor

@jonmeow jonmeow commented Mar 14, 2022

Note the use of an enum allows for the operator to be defined for formatting. This reduces the custom formatting required, which is a simplification carrying over to error handling changes I'm working on too.

Also, I kind of feel the code's now clearer about what's supported; I'm dropping CHECKs that seemed redundant with the enum.

@jonmeow jonmeow requested a review from zygoloid March 14, 2022 19:00
@jonmeow jonmeow requested a review from a team as a code owner March 14, 2022 19:00
@jonmeow jonmeow merged commit 7f75de7 into carbon-language:trunk Mar 14, 2022
@jonmeow jonmeow deleted the radix branch March 14, 2022 20:40
chandlerc pushed a commit that referenced this pull request Jun 28, 2022
Note the use of an enum allows for the operator to be defined for formatting. This reduces the custom formatting required, which is a simplification carrying over to error handling changes I'm working on too.

Also, I kind of feel the code's now clearer about what's supported; I'm dropping CHECKs that seemed redundant with the enum.
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.

2 participants