Integer generic parameters

In Swift's case, there's already a decent amount of code out there using UnsafeBufferPointer for bulk data operations, and the underlying array value witness operations in the runtime that they use assume that an "array" is stride-padded. We want new contiguous collection types to be compatible with existing practice, and Span to be a mostly drop-in replacement for unsafe types, so IMO we should stride-pad any type that's used for array storage.

2 Likes