Can anyone elaborate on how "Rust changes the way you think"?
With Rust you need to be explicit about everything's lifetime. You cannot allocate some chunk of memory and freely borrow it; when borrowing you need a certificate (i.e. compiler check) that the borrowed reference has a shorter lifetime than that of the referenced memory. It is tremendously different from the absence of such guarantees (like C) or the GC-based weak guarantees (like Java and Go, which does not solve t…
But you already has to think like this when you use smart pointers in C++.. "who owns this reference?" etc..
But in C++ this is a library.. not a syntax.. point to rust for this