3 ms·
To a first approximation, avoid using raw pointers. They should almost never be needed in application code. Use C++'s standard library facilities for smart poin
by sumanthvepa 2y ago
To a first approximation, avoid using raw pointers. They should almost never be needed in application code. Use C++'s standard library facilities for smart pointers and containers instead. They are masterpieces of engineering, and work extremely well.
- tomrod 2y agoWhy avoid using defaults? That's literally the part of an unnecessarily long learning curve needed to learn C/C++ that rust helps with.