[swift-evolution] [Pitch] Non-class type requirements on protocols (eg : struct, : enum)
dabrahams at apple.com
Fri Oct 21 14:11:22 CDT 2016
on Fri Oct 21 2016, Adrian Zubarev <adrian.zubarev-AT-devandartist.com> wrote:
> Does this constraint exclude COW or are we still allowed to have a reference type for storage behind
> the scenes?
It does not exclude CoW. Array has value semantics.
> Adrian Zubarev
> Sent with Airmail
> Am 21. Oktober 2016 um 19:50:31, Dave Abrahams via swift-evolution (swift-evolution at swift.org)
> I'm not sure what you mean by “data-only,” but the constraint I want is
> “has value semantics.”
More information about the swift-evolution