Y
Hacker News
new
|
ask
|
show
|
jobs
by
steveklabnik
577 days ago
I believe this is because [] doesn’t do checking normally, so this is seen as a consistency. I am not 100% sure, but I do remember it being a contentious decision.
.at() is added in C++26.