-
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
[BUG] Unify the constructor signature for pointer-based initialization across multiple types #3704
Comments
I agree that it's necessary, but I'll be a bit nit-picky and very subjective: since we are defining a new standard, I wanted to say that I strongly dislike using |
Agreed given that argument. I'd be fine with |
…uctor args (#50485) [External] [stdlib] [NFC] Rename `StringSlice` `UnsafePointer` constructor args Rename `StringSlice` `UnsafePointer` constructor args. Part of #3704. ORIGINAL_AUTHOR=martinvuyk <[email protected]> PUBLIC_PR_LINK=#3740 Co-authored-by: martinvuyk <[email protected]> Closes #3740 MODULAR_ORIG_COMMIT_REV_ID: 66fcc1d96c46dcd4b8d1b872b4da38843b014995
… args (#50486) [External] [stdlib] [NFC] Rename `String` `UnsafePointer` constructor args Rename `String` `UnsafePointer` constructor args. Part of modularml/mojo#3704. ORIGINAL_AUTHOR=martinvuyk <[email protected]> PUBLIC_PR_LINK=modularml/mojo#3741 Co-authored-by: martinvuyk <[email protected]> Closes modularml/mojo#3741 MODULAR_ORIG_COMMIT_REV_ID: 7c043cc298711e9d981a61a80693ca4b7278f4c0
… args (#50486) [External] [stdlib] [NFC] Rename `String` `UnsafePointer` constructor args Rename `String` `UnsafePointer` constructor args. Part of #3704. ORIGINAL_AUTHOR=martinvuyk <[email protected]> PUBLIC_PR_LINK=#3741 Co-authored-by: martinvuyk <[email protected]> Closes #3741 MODULAR_ORIG_COMMIT_REV_ID: 7c043cc298711e9d981a61a80693ca4b7278f4c0
…rgs (#50488) [External] [stdlib] [NFC] Rename `Span` `UnsafePointer` constructor args Rename `Span` `UnsafePointer` constructor args. Part of #3704. ORIGINAL_AUTHOR=martinvuyk <[email protected]> PUBLIC_PR_LINK=#3743 Co-authored-by: martinvuyk <[email protected]> Closes #3743 MODULAR_ORIG_COMMIT_REV_ID: 4845b40b59eaa55827b4ee42240b7f9361d4a608
…rgs (#50487) [External] [stdlib] [NFC] Rename `List` `UnsafePointer` constructor args Rename `List` `UnsafePointer` constructor args. Part of #3704. ORIGINAL_AUTHOR=martinvuyk <[email protected]> PUBLIC_PR_LINK=#3742 Co-authored-by: martinvuyk <[email protected]> Closes #3742 MODULAR_ORIG_COMMIT_REV_ID: f4e85d1d2a78c7cc81860b9757897bd5cf230f06
Agreed, they're wildly inconsistent. +1 to your proposed convention - feel free to open a PR. I'm also +1 for making them all (including
String
kw-only for the ptr + len constructor until we fix implicit constructor issue you linked).Originally posted by @JoeLoser in #3698 (comment)
The text was updated successfully, but these errors were encountered: