News for hackers. Stuff that matters.
Re:Will Carbon Replace C++? by int_19h on Tuesday February 28, 2023 @09:10PM (#34977876)
It's not just the indexing you have to worry about, though. It's also out-of-bounds iterators. And while, yes, you can tell your implementation to emit checks for those as well, it's so slow in practice that nobody uses it in optimized release builds (and some implementations don't even support such use).
Re:Will Carbon Replace C++? by LaLaLand122 on Wednesday March 01, 2023 @05:09PM (#34989032)
Sure. I agree. I was just arguing that it's good span doesn't have at(), I was not trying to say C++ is memory safe.