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

> Avoiding code paths with undefined behavior is something you do all the time.

> // Check the pointer before using it

> if (p != nullptr) p->DoSomething();

I love this example.



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

Search: