3 ms·
I agree with you but just for completeness the rust equivalent is unsafe { *ten_things.get_unchecked_mut(11) = blah } Which goes to show that usually the unsa
by voorwerpjes 4y ago
I agree with you but just for completeness the rust equivalent is
unsafe { *ten_things.get_unchecked_mut(11) = blah
}
Which goes to show that usually the unsafe methods are more verbose and annoying to deal with. Devs won't reach for them just out of laziness.