3 ms·
Understanding the difference between single ownership and shared ownership is being _sadistic_? > To me, smart pointers are one of the tells that you are actua
by Longhanks 3y ago
Understanding the difference between single ownership and shared ownership is being _sadistic_?
> To me, smart pointers are one of the tells that you are actually writing C++, and not just C with classes.
To me, shared_ptr is one of the tells that you should be writing Go or something like that, and not just C++ with reference counting.
- nemothekid 3y ago>is being _sadistic_ It's moreso I've had so many interviews crash on this question that I've started to feel bad for asking it (and starting to assume that, no they don't know C++). Most of these jobs we didn't even use C++, it was just identifying C++ engineers was usually a very strong signal, especially because we were early adopters into Rust.