I am inherently skeptical of any statement that includes the phrase "I know better". I certainly don't know better, and if I think I know better than the borrow checker, the onus is on me to prove it by indicating explicit lifetimes.
-
-
-
I don't want to trust technology to people who "know better".
End of conversation
New conversation -
-
-
Non-lexical lifetimes is a huge important feature this year and is not currently supported.
-
Certainly true, but NLL isn't the solution to a ton of the complaints I see. Far too often the answer is "actually, the compiler is right, what you wanted is unsafe". The cases when NLL would help me, I've been able to fix it with weird dances, while not reaching for unsafe.
- 1 more reply
New conversation -
-
-
My favorite example of this is https://www.mozilla.org/en-US/security/advisories/mfsa2016-92/ … — the underlying bug was exactly what the borrow rules prevent, and the emergency fix was the equivalent of a RefCell check.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I don't know better than the borrow checker, I just sometimes struggle to explain my reasoning — and then I don't know whether I'm bad at reasoning (i.e. wrong) or bad at explaining.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
This Tweet is unavailable.
-
-
the rust borrow checker taught me how to write better c and cpp code. :D
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Can I have the borrow checker for c and c++ please?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.