> I find this to be an ugly solution. Particularly so since non-objc protocols
> don't support optional members. Compare this to using a base class:
If inheritance works well, I wouldn't insist on protocols just for the sake of
it.
This wont help with structs, but your example uses a class… and if you can't
use inheritance for other reasons, you could try composition instead.
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users