I think one of the problems with protected is it over emphasises inheritance over composition. Swift isn't only a object based language but a functional one too with functions/blocks/closures playing a big role and potentially needing just as close access to the objects they act on as subclasses might.
Comments
I think one of the problems with protected is it over emphasises inheritance over composition. Swift isn't only a object based language but a functional one too with functions/blocks/closures playing a big role and potentially needing just as close access to the objects they act on as subclasses might.