[swift-evolution] [Proposal Draft] Flexible memberwise initialization
2th at gmx.de
Mon Dec 21 14:21:09 CST 2015
I already encountered a downside of the memberwise initializer - but that's already addressed (at least partly) as point 4) in Chris' list:
Let's say I have a struct with 10 members, and all of them have a default; the current initializer doesn't use the defaults, so you have the burden of filling all parameters on your own, even if you only want to customize a single parameter.
It would be nice to see that resolved, but imho the proposal looks quite long and complicated (but it's late here in Europe ;-)
More information about the swift-evolution