RangeOf: A better span—Corentin Jabot

Save to:
Instapaper Pocket Readability

Do you like span?

RangeOf: A better span

by Corentin Jabot

From the article:

I don’t like span.

Since that article was posted, the committee improved span quite a bit by removing operator== and making it’s size() consistent with that of vector after a lot of discussions. And I mean a lot...

Add a Comment

Comments are closed.

Comments (1)

0 0

NoSenseEtAl said on Nov 28, 2018 06:18 PM:

I also do not like span, but this article is missing the important use cases for span.
Span is not just used to accept arguments to functions.
Sometimes it is used as a bit less ugly alternative to C array and separate size variable.