[swift-evolution] [Pitch] Non-class type requirements on protocols (eg : struct, : enum)

Dave Abrahams dabrahams at apple.com
Fri Oct 21 12:37:20 CDT 2016


on Fri Oct 21 2016, Mike Kasianowicz <swift-evolution at swift.org> wrote:

> Hooray, I'm not the only one.
>
> I agree copying is a much more nuanced issue- but sometimes struct is close
> enough.
>
> What I would really like is "this is a data-only type" rather than
> "struct".  

I'm not sure what you mean by “data-only,” but the constraint I want is
“has value semantics.”

-- 
-Dave



More information about the swift-evolution mailing list