Your video is awesome. I’ve tried to understand extensions by viewing other videos but they are not very well explained nor do they teach the why. You explain extensions in such a meaningful, easy to understand way. You are a world class teacher. Thank you so much. Bob
Since you can use the extension to keep the member wise init and have your own, could you then have several init through extensions for the same struct?
It doesn’t seem to make sense that the default initializer would be disabled by defining a custom one in a struct as this would also break existing code. Or am I missing something?
Your video is awesome. I’ve tried to understand extensions by viewing other videos but they are not very well explained nor do they teach the why.
You explain extensions in such a meaningful, easy to understand way. You are a world class teacher. Thank you so much. Bob
using extension for another init to retain the memberwise initialiser, I did not know that. Thanks
Really really helpful stuff!
Since you can use the extension to keep the member wise init and have your own, could you then have several init through extensions for the same struct?
It doesn’t seem to make sense that the default initializer would be disabled by defining a custom one in a struct as this would also break existing code.
Or am I missing something?
Looks like we have the same LOTR edition :D 1178 pages