3 ms·
A huge(!) release for a minor version. I’m most excited about default values for memberwise initializers, opaque return types and property wrappers.
by elpakal 7y ago
A huge(!) release for a minor version. I’m most excited about default values for memberwise initializers, opaque return types and property wrappers.
- soganess 7y agoSame for the member-wise defaults! Especially in concert with optionals. I hate having callers explicitly pass in nil, but I'm also not fond of provided a convince initializer, as it is one more thing to change when you add a new member to a struct.
- elpakal 7y agoI remember hearing at WWDC that memberwise defaults were added to Swift by a student. Apparently pitched the idea in the forums, then went straight PR on it!