Skip to content

[stdlib] Change Span._len to UInt #4294

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

martinvuyk
Copy link
Contributor

Part of #4283

@martinvuyk martinvuyk requested a review from a team as a code owner April 5, 2025 23:01
@martinvuyk martinvuyk force-pushed the change-span-length-uint branch 4 times, most recently from c7345b7 to 5139e64 Compare April 15, 2025 15:50
Signed-off-by: martinvuyk <[email protected]>
@martinvuyk martinvuyk force-pushed the change-span-length-uint branch from 5139e64 to 4ee171e Compare May 5, 2025 01:12
@lattner
Copy link
Collaborator

lattner commented May 6, 2025

FYI, this isn't your fault, but I don't agree with this line of changes. We want a single common "currency" type for "integers the size of pointers". That type is called Int for a wide range of reasons. We should us it, instead of UInt. Let's talk offline and get something we can document in the stdlib manual. Swift went through all of this years ago and it was a hard won lesson, but after doing it, it was clearly the right path.

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