3 ms·
What's the deal with optionals? I am not sure what the use case are. Seems much better then ObjectiveC
by desireco42 12y ago
What's the deal with optionals? I am not sure what the use case are.
Seems much better then ObjectiveC
- netcraft 12y agoThe docs seem to cover it pretty well: https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/TheBasics.html#//apple_ref/doc/uid/TP40014097-CH5-XID_428 https://developer.apple.com/library/prerelease/ios/documenta... But the basic idea around optionals is a much better and cleaner way of dealing with possible null (nil) values. Lots of other languages have and are getting optionals.
- desireco42 12y agoWhat was confusing me that they would specify it during initialization.