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

I think modern C++ compilers are smart enough to eliminate the bounds check if they can prove that it never fails.



Yup, Rust will too.


I mainly do it this way to reduce the chance of my code panicking, not specifically for any performance reasons.




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

Search: