I think the first example is actually not very compelling for C++ programmers, because it's specific to vector. e.g. in C++ this is safe:<p><pre><code> deque<int> xs = {1, 2, 3};
int *x = &xs[0];
xs.push_back(92);
cout << *x;
</code></pre>
but Rust would still reject this.
Rust pieces should stick to problem and solutions and why rust is a better hammer. C/c++ need some competition in the systems space. Drop the sales and marketing puff piece approach
Never understood python programmers' complaints about punctuation noise in curly brace languages, but looking at rust I feel like I start to understand what they mean.