> On Apr 7, 2017, at 9:23 AM, Matthew Johnson <matt...@anandabits.com> wrote:
> 
> The most common thing is to have some stored properties that are private and 
> include a handful of fileprivate (or higher) methods that operate on these 
> properties in the type declaration.  All members that don’t need direct 
> access to these properties are placed in extensions specifically to prevent 
> the direct access to stored properties which they don’t need.  This minimizes 
> the lines of code with access to such properties.

Is there a reason this could not be implemented by putting all the sensitive 
stored properties in a separate type from the rest of the code?

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

Reply via email to