So i was happy enough with #rust for #AdventOfCode up to now, even as a beginner, but damn, not only i didn't really expect to be able to build code that stackoverflows, (did i misunderstood what rust promised me?), but debugging that is, as far as i can tell, a very bad experience, i got lucky once fixing my first mistake, but the current one is not obvious, so i'm installing lldb as i read it's one way to go about it, but not very on par with the rest of the (very good) experience so far.
@tshirtman Regarding the parenthetical question about "what Rust promised", you might be conflating buffer overflows and stack overflows. The latter is just an inevitable result of allowing general recursion with a bounded call stack. It's not a memory safety issue--it's similar in category to a well-defined abort/fatal error. Even though the quality of the error reporting for stack overflows is usually worse than for panics, it's still well-defined behavior.
@pervognsen@tshirtman To add on to this, safe Rust also allows for memory leaks, which are a type of memory issue, but not a type of memory safety issue.
Add comment