2 ms·
I agree, Swift's optionals are really great. But I also like Objective-C's nil: you can send messages to it and it won't do anything. That too solves a ton of p
by archagon 11y ago
I agree, Swift's optionals are really great. But I also like Objective-C's nil: you can send messages to it and it won't do anything. That too solves a ton of problems with NULL.
- kazinator 11y agoWhat solves problem with null is if you can send messages to it, and have it do exactly what you want depending on the nature of message.