modularml / mojo

The Mojo Programming Language
https://docs.modular.com/mojo
Other
21.79k stars 2.53k forks source link

[stdlib] Rename `uninitialized` -> `unsafe_uninitialized` in `InlineArray` #2654

Closed gabrieldemarmiesse closed 2 weeks ago

gabrieldemarmiesse commented 2 weeks ago

Unsafe methods should be explicit in the code. Uninitialized memory is highly unsafe (can't run destructor on it, etc) , thus it should have a name that reflects it.

modularbot commented 2 weeks ago

✅🟣 This contribution has been merged 🟣✅

Your pull request has been merged to the internal upstream Mojo sources. It will be reflected here in the Mojo repository on the nightly branch during the next Mojo nightly release, typically within the next 24-48 hours.

We use Copybara to merge external contributions, click here to learn more.

modularbot commented 2 weeks ago

Landed in 0c12d86753aaa87e6095bdd04735f837cc9f7ee9! Thank you for your contribution 🎉