News for hackers. Stuff that matters.
Re:The Inevitability of the Borrow Checker by ludwik on Friday February 07, 2025 @07:00PM (#42978922)
Allowing you to catch and handle an exception is not the same as silently returning a wrong answer.
Re:The Inevitability of the Borrow Checker by caspper69 on Friday February 07, 2025 @07:22PM (#42979075)
It seems to me that exceptions have a bad rep.

Complaints range from too slow to hidden control flow to just not liking them.

I absolutely see the benefit in application code, otherwise you're error checking every function call.

On the other hand, I completely understand not using such a mechanism in kernel and driver code.

But Rust has decided against exceptions (which I actually believe were part of the original vision way back when, but please don't quote me), so now there's panics.

Everything is a tradeoff at some level.

Re:The Inevitability of the Borrow Checker by paulddraper on Friday February 07, 2025 @11:46PM (#42980461)
Yes, the wrong answer is terrifying