News for hackers. Stuff that matters.
Re:Implications of Rewriting a Browser Component in Rust by Shoop on Thursday February 28, 2019 @02:14PM (#19274167)
It's somewhat similar, except C++'s [] leads to memory unsafety whereas Rust's [] on slices has bounds checks and will abort the program on failure. Your program will crash but it won't be an exploitable bug (except for a DOS). .get(), meanwhile, returns an Option so that code written using it can recover from OOB accesses.

There are no comments on this comment yet.