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

Having it available means we can use it explicitly. For example, I could see a compiler flag making `std::vector<T>::operator[]` be checked and then if profiling warrants, remove the check by explicitly checking if my index is out of bounds and invoking UB. Not saying that’s the pattern people will use, but having an escape hatch makes safer-by-default behavior more approachable.



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

Search: