Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Why avoid using defaults? That's literally the part of an unnecessarily long learning curve needed to learn C/C++ that rust helps with.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: