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

> The thing though is that these checks are NOT free and the overhead is not justified for all use cases so forcing them on everyone is not appropriate for C++.

Well, that's why they should be a flag. The question is whether it should be enabled by default or not.




It should be enabled by default, and if you want to index without bounds checking you should have to write something like a.unsafe_at(i)




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: