SE-0447: Span: Safe Access to Contiguous Storage

Hey folks,

Based on the ongoing discussion, the authors have provided a pull request with some updates to the API for Span:

  • Add Index type and indices property to Span.
  • Add byteOffsets to RawSpan.
  • Removed the index validation utilities (e.g., boundsContain, isWithin) from Span and RawSpan.
  • Provide more detail on how the subscript accessor is likely to evolve (it's specified as _read).
  • Some wordsmithing around unsafeLoad.

We'll extend this review until October 15, 2024.

Doug Gregor
Review Manager

14 Likes