{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreiddbzavqnivbdrrhpup4x6tkz67baqkwfmeitnlm3qrdpjdvoqxfe",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mjlcuxnrzg22"
},
"path": "/t/introduce-box-new-uninit-array-and-box-new-zeroed-array/24179#post_6",
"publishedAt": "2026-04-16T00:27:04.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "`unwrap` is not considered bad practice in general, and is required for things like the recommended usize <-> uN conversion method as well. In cases where it can never fail, unwrap is totally fine and the check can be trivially optimized out.",
"title": "Introduce `Box::new_uninit_array` and `Box::new_zeroed_array`"
}