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

Raw pointers are fine in many contexts, especially when a reference would not do (e.g. when it's optional).


> Raw pointers are fine in many contexts, especially when a reference would not do (e.g. when it's optional).

I didn't say "always use references", I said, never use raw pointers. Since shared_ptrs can be null, I don't see why this is a valid counterargument.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: