Organizing stored properties in extensions

It's a good idea, and one I've often wanted. For both logical and implementation reasons, it makes a lot of sense to start with (1) same-module extensions (2) of concrete types (i.e. you can't add stored properties to protocols (probably ever) or UIKit classes (yet)).

There's been some discussion of this in the past:

https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20161003/027723.html

5 Likes