ISO/IEC 9899 Programming Languages — C, ISO/IEC JTC1/SC22/WG14
Proposal Category:
Change Request, Feature Request
Target:
C2y/C3a
Abstract
Modeled after the fix for what Walter Bright called "C’s biggest mistake", this proposal explores an extended variant of a non-owning span type which can unify the processing of arrays, whether they’re C arrays, a bespoke combination of a pointer and a size, a variable-length array, or other source/region of memory. The syntax, T[..], and it’s expansive alternative that allows for an infinite amount of dimensions and strides within a single memory region, T[..;spec…], allow for code to very clearly model the semantics of a flat buffer of memory.