Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't think it's just recency either, it's just incredibly easy to shoot yourself into the foot with string_view when the language has no way of checking that the pointed to memory is actually valid. People moved to smart pointers for good reasons and string_view just undoes all of that.


Yeah, it was a bad decision.

While using C++, adding something like gsl to the toolbox is worth gold, and also enabling bounds checking even in release (really, most of the time it hardly matters to the application users).




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

Search: