For the hundredth time: There is no way to add sound, complete borrow checking to C++ while retaining any semblance of compatibility with existing code.
-
-
By no means is the argument limited to shared_ptr. There are dozens of common C++ patterns I could point to that break under a borrow check. Could you, in theory, create some super-limited borrow checkable subset of C++? Sure.
-
But it’d be incompatible with virtually all existing C++. Really it would be a different language starting from scratch with zero ecosystem. You’d be better off using Rust, which has an ecosystem.
End of conversation
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.