
5 Dec
2024
5 Dec
'24
1:12 p.m.
What is the practical advantage of using span (of any provider) over the traditional pointer+size? I emphasize the "practical" part, as opposed to any personal preference to "modern-ness", code style or anything like that.
Like I explained in my original review, there is now a new type of program analysis guarded behind `-Wunsafe-buffers-usage` that this library would greatly benefit from, if it were spanified. The warning itself is opt-in to users. In the end of the day, this is about removing the chance of certain categories of mistakes around the use of pointers, while improving readability.