21 Aug
2022
21 Aug
'22
3:06 p.m.
Vinnie Falco wrote:
URL should be a "Keep It Simple" type, accessible to C++ beginners, with straightforward lifetime semantics.
std::string_view is C++17, are we saying now that Boost libraries should avoid some C++ features to appease beginners?
Lifetime errors are not only made by beginners. They are a regular occurrence in the Clang code base, for instance, and I don't think the people working on and contributing to Clang are beginners. Returning views is basically a trap that's going to get everyone earlier or later, no matter how experienced.