- Proposal: SE-0114
- Author: Erica Sadun
- Status: Accepted (Rationale)
- Review manager: Chris Lattner
This proposal updates parameters and generic type parameters from value
names to header
names for ManagedBuffer
, ManagedProtoBuffer
, and ManagedBufferPointer
.
All user-facing Swift APIs must go through Swift Evolution. While this is a trivial API change with an existing implementation, this formal proposal provides a paper trail as is normal and usual for this process.
This change introduces better semantics for buffer types.
This update affects ManagedBuffer
, ManagedProtoBuffer
, and ManagedBufferPointer
.
The generic parameters <Value, Element>
become <Header, Element>
in affected classes.
Each use of value
or Value
in type members is renamed to header
or Header
. Affected members include
header: Header
_headerPointer
,_headerOffset
withUnsafeMutablePointerToHeader
create(minimumCapacity:makingHeaderWith:) -> Header
- Initializers that refer to
makingHeaderWith
Existing third party code will need migration using a simple fixit.
Not Applicable