Hacker News new | past | comments | ask | show | jobs | submit login

Put the condition in the type. If you truly know that the pointer is nonnull, you can explain how you know to the compiler.



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

Search: