> There seem to me to be multiple ways to solve this problem - a newtype(esque)
> keyword, struct subtyping, or forwarding as Matthew is suggesting
Imho it would make sense to start a topic about inheritance for structs — of
cause there a good theories why this isn't possible, but subtyping on its own
isn't problematic:
You just have to disallow polymorphism (at least for subtypes with own
properties).
I wonder if there has been a decision to just disable inheritance for structs
completely to avoid confusion with the lesser strict rules of reference types…
Tino
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution