A comparison of Rust's borrow checker to the one in C#

https://lemmy.world/post/21334791

A comparison of Rust's borrow checker to the one in C# - Lemmy.World

Is what the author calls a C# borrow checker purely lexically based? The first error message gives that impression. And if it is, then it wouldn’t qualify for any such comparisons with 2018+ Rust.

It’s 100% not a borrow checker. Bit the author acknowledges that.

It’s just checking the scopes the variables are defined in in the first example.