The Rust borrow checker from a different perspective
blog.systems.ethz.ch
The Rust borrow checker from a different perspective
1–10 of 51 posts
Re: The Rust borrow checker from a different perspective
#2Re: The Rust borrow checker from a different perspective
#3As someone who is not familiar with Rust at all, wow—what refreshingly helpful error messages!
Re: The Rust borrow checker from a different perspective
#4Re: The Rust borrow checker from a different perspective
#5How do you get back something owned by something else?
Re: The Rust borrow checker from a different perspective
#6As someone who is not familiar with Rust at all, wow—what refreshingly helpful error messages!
Re: The Rust borrow checker from a different perspective
#7As someone who is not familiar with Rust at all, wow—what refreshingly helpful error messages!
Can someone chime in as to why C++ compilers in particular are notorious for extremely verbose yet unhelpful error messages? Is it something endemic to parsing the language that there can't be errors as helpful as Rust's?
C++ also suffers from years of backwards-compatibility twister creating abundant cases of ambiguity if you do something wrong. The compiler will do it’s best, but if your code suddenly parses wildly differently because your semicolon is missing, oh well. Rust is far simpler in that regard, so there are fewer instances where your code might accidentally make sense to the compiler if you have an error.
Re: The Rust borrow checker from a different perspective
#8As someone who is not familiar with Rust at all, wow—what refreshingly helpful error messages!
Can someone chime in as to why C++ compilers in particular are notorious for extremely verbose yet unhelpful error messages? Is it something endemic to parsing the language that there can't be errors as helpful as Rust's?