News for hackers. Stuff that matters.
Re:Four limitations of Rust's borrow checker by RandomThoughts3 on Wednesday December 25, 2024 @08:11PM (#42512426)
[delayed]
Re:Four limitations of Rust's borrow checker by estebank on Thursday December 26, 2024 @12:26PM (#42516444)
I think a lot of pushback is because people are talking past each other.

The reality:

- the borrow checker has limitations that doesn't accept some constructs that could be be proved safe, given Rust's own rules

- the borrow checker is a net positive as it does push you towards better constructs, and the (rare) times it forbids you from doing something that could be safe, you have safe (sometimes not zero-cost) and unsafe escape hatches

But these are then understood by the intransigent as:

- the borrow checker is always detrimental

- the borrow checker can do nothing wrong

At that point, no one can understand why the other person is being obtuse, and you end up with... well, the comment section under every Rust article.