Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Agreed, this is why I don't write kernels or things like that in Rust. The borrow checker will assume that your code is running in a parallel (multicore/multithreaded) capable environment, even if it isn't, and there is no way to explicitly tell the borrow checker to stfu, so you have to do a bunch of hack abstractions (Ref<T>, Rc<T>, ...) just to make it shut up.
 help



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: