On Dec 18, 2015, at 4:11 PM, John McCall via swift-evolution <swift-evolution@swift.org> wrote: >> >> One potentially large downside is you can no longer look at a type >> declaration and find out how large it is. For example, I could define >> >> struct Foo { >> var x: Int >> } >> >> and it looks like a tiny struct, but I could then add an extension in a >> separate file that bloats that out to some ridiculously massive struct, and >> that wouldn't be obvious from looking at it. > > I think any storage-in-extensions proposal ought to be a special feature of > classes; I would not support the ability to add stored properties to structs > in extensions, even from within the module.
I agree. -Chris _______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution