@jorendorff I have a dumb Rust question... Does the "no mutable aliases" rule mean I cannot "soundly" use Rust instead of C++ for all my programming tasks? It'd be simplifying if I knew in my head I could always replace C++ with Rust for all use cases.
-
-
Aha, sounds like the key fact I was missing! So if I use unsafe dialect with unsafe mut pointers I can't think of anything I would be able to express in C++ I can't do in that unsafe subset of Rust. That's a eye opener for me, just wanted to know I could reduce A to B if need be.
-
1. Yes, there are other kinds of pointers like *mut T and &RefMut<T> that can be mutable and aliased, at the cost of being a pain in the butt
- 4 more replies
New conversation -
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.