Re:Limitations of protocols in Swift
by Manishearth on Wednesday December 16, 2015 @10:12AM
(#10744689)
Classical OO inheritance is the right answer in a language that supports it, though. There may be equally ergonomic ways of doing it in languages with ADTs.
(Which may or may not be the case here, depending on extensibility)
(Which may or may not be the case here, depending on extensibility)