Comment by bcjdjsndon
9 days ago
Youve essentially listed the same point four different ways... Rust merely kicks the UB can down the road.
1. And? The unsafe code could still be memory unsafe
2. But coders can't be trusted to manually manage memory, otherwise you'd just use c++ right? Doesn't matter whether it's marked unsafe or not, you could do that on c code.
3. Not in unsafe rust, that's my whole point. There is only vague guidance on correct unsafe rust. (Because they haven't managed to crack the problem, just draw a perimeter around them)
4. See point 2 rebuttal
No comments yet
Contribute on Hacker News ↗