A comparison of Rust's borrow checker to the one in C#
https://lemmy.world/post/21334791
=> More informations about this toot | More toots from Giooschi@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.
=> More informations about this toot | More toots from BB_C@programming.dev
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.
=> More informations about this toot | More toots from GetOffMyLan@programming.dev
text/gemini
This content has been proxied by September (ba2dc).