logoalt Hacker News

throwaway173738yesterday at 11:11 PM1 replyview on HN

There are classes of bug that are easy to write in C that are impossible to express in Rust.


Replies

davemptoday at 12:50 AM

    let foo = [1, 2, 3];
    unsafe {
        *foo.get_unchecked_mut(4) = 5;
    }
Not sure why Rust evangelists always seem to ignore that unsafe exists.
show 2 replies