aratakareigen
Joined 7 years ago
Karma
79
Submissions
43
Member since
Dec 11
Joined 7 years ago
> doesn’t Rust refuse to compile even when you use non-concurrency safe objects in a single thread?
and given that most types (Vec, HashMap, etc.) aren't "concurrency-safe" (thread-safe?), your answer
> yes
is rather perplexing.
These markers are irrelevant in a single-threaded scenario.
But this convention is not at all respected in programming (e.g. + for string concatenation in many languages) so I have to admit that it's pretty irrelevant.
Why reading a research paper rather than the more standard approach of reading a textbook?
Edit: The article says "magical hidden properties".
Another example is if someone tried to use a Vec x inside the closure passed to x.drain.