-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[stdlib] Refactor format_int.mojo
#3348
base: nightly
Are you sure you want to change the base?
Conversation
Oh I forgot about something. |
…ponding TODO's. Signed-off-by: Max Brylski <helehex@gmail.com>
458e6e6
to
4d5ca79
Compare
Ok, I added those tests back in. |
@@ -591,9 +591,7 @@ struct _ObjectImpl( | |||
) | |||
return | |||
if self.is_func(): | |||
writer.write( | |||
"Function at address " + hex(int(self.get_as_func().value)) | |||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question Is there a way we might be able to keep the hex(..)
formatting here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Followup Never mind, I see you've changed the formatting of UnsafePointer
to use hex
by default as well.
That seems reasonable to me, though it would be great to call that out in the description as well :)
!sync |
FYI this is still hitting some compiler bugs internally in the elaborator, so added the "blocked" label on this PR for now. |
Refactor
format_int.mojo
to use Formatter, and take care of corresponding TODO's.