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

There is no problem using raw pointers for non owning pointers. Also a lot of safe abstractions can be built on top of raw pointers (and smart pointers are obviously an example).

Pragmatism beats dogmatism in practice.



> no problem using raw pointers for non owning pointers

No problem, but also little to no benefit. Why get in the habit of using them when you don't have to?




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

Search: