
Tech Talk: Moves and Borrowing In Rust With Jim Blandy
CoRecursive: Coding Stories
00:00
Is There a Runtime Error?
At run time, these are just pointers. But to actually compile it, then we're doing static analysis and making sure that these rules hold right? What's going on? Ye, certainly a run these are just ordinary pointers. The runtime explanation is just exactly like what youd find f fouar passing something by reference in c plus plus a. That's a type error. When you call a function, the function has to takea parimeters as to take their like tyght perimeters,. They represent the lifetime of the thing that’s being passed to it. And so if you try to pass to it a reference to some local variable, you get a compile time error
Transcript
Play full episode