> On Aug 2, 2016, at 8:44 PM, Tino Heth via swift-users <swift-users@swift.org> 
> wrote:
> 
> * yes, an embedded "address"-struct would be an alternative — but copy & 
> paste or writing everything in assembler is an alternative as well ;-)

The other alternative for this particular case is a Person protocol which 
Customer and Employee both conform to. Protocols currently require you to 
redeclare their properties, but we could add a feature to change that if there 
was a strong enough justification.

-- 
Brent Royal-Gordon
Architechies

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to