
Tech Talk: Moves and Borrowing In Rust With Jim Blandy
CoRecursive: Coding Stories
00:00
Is Rust a C++ Compiler?
Rust forbids a you to use aninitialized variable, right? Men? You can declare a variable without setting its value. But rust does require that every use of that variable must be preceded by something that initializes it. And when you do move that, that variable becomes uninitial at that point. So you get a static error if you try to use it. It's really something i haven't seen, like the th the table stakes on compilers have been lifted up here, i think, to a t higher level than i'm used to.
Transcript
Play full episode