Hacker News
new
past
comments
ask
show
jobs
points
by
the-smug-one
3 hours ago
|
comments
by
veddan
3 hours ago
|
[-]
I think it should be possible to get rid of the Option tag without introducing any unsafe code by changing index in Gc from u32 to std::num::NonZero<u32>.
reply
by
jagged-chisel
20 minutes ago
|
parent
|
[-]
An index of 0 is valid if the collection has any content. This doesn’t solve an out-of-bounds issue with the index (i.e. an index that’s too high)
reply