> I only see the benefits on this. > • We don't have to store all states in one file. States can be stored > separately. So, we can write code in more composition style. > • We can add new states to the existing type. Not just NSObject > subclass with associated object.
I think people generally want this; the question is how to implement it, and especially how to implement it *without* either limiting it to types in the same module, or dangling what amounts to a dictionary off every single object and struct. (Structs are more difficult than objects, because they don’t have stable identities.) Any ideas? -- Brent Royal-Gordon Architechies _______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
