
Tech Talk: Total Swift Programming
CoRecursive: Coding Stories
00:00
Swift Is an Algebradeditype That Has No Pointers.
Swift uses an aldraglata type called maybe or option, or optiona in swift. It has two possible values, while two constructors. The goal of this is to eliminate the bug of referencing something that doesn't exist and using it even if it doesn't exist. If you're trying to use it directly, the compiler will tell you, you cannot use it directly because you cannot prove that it's insatiated yet. You have to to do some case. N elisis to say, is it there? If it's there, i can use it, and will do this. And if it's not there, i will do something else, either ignore
Transcript
Play full episode