
Sequence-Oriented Programming
CppCast
00:00
The Lore of Exclusivity: How Rust and Valve Secure Memory Safety
Rust and Valve have this thing they call the lore of exclusivity. That's how they ensure memory safety. In Rust, an iterative constitutes what you would call a borrow in Rust. But if our cursor is just like an index, that doesn't constitute a borrow. We don't do the borrow until such time as we want to actually read from the sequence or ask a sequence, please can you increment my cursor. So there's no performance disadvantage to doing this that I've come across. It's the same as using vector at instead of vector operator square bracket.
Transcript
Play full episode