[SR-1955] Consider renaming or eliminating ManagedProtoBuffer
.
#44564
Labels
affects ABI
Flag: Affects ABI
feature
A feature request or implementation
standard library
Area: Standard library umbrella
swift evolution implemented
Flag → feature: A feature that was approved through the Swift evolution process and implemented
Additional Detail from JIRA
md5: 697c8ab05240578c1d24b279fd3d6bc6
Issue Description:
The reason why
ManagedProtoBuffer
exists is to give the users an extra bit of type safety inside of the closure passed toManagedBuffer.create()
. This closure receives theManagedBuffer
instance and returns the initial value that is stored in the buffer (the header part of the buffer). We are passing theManagedBuffer
asManagedProtoBuffer
to prevent the closure from reading the uninitializedvalue
property. Maybe this extra bit of safety is not worth the API surface complexity.NOTE: Requires a swift-evolution proposal. apple/swift-evolution#437
The text was updated successfully, but these errors were encountered: