3 ms·
Same 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 convi
by soganess 7y ago
Same 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!