6 ms·
Looks like that would've probably been caught if it were written in Swift.
by bryansum 6y ago
Looks like that would've probably been caught if it were written in Swift.
- K0nserv 6y agoif (restrictiveParams[eventName] as! [String: Any])["test"] != nil In Swift, now hopefully you wouldn't write this code but it's not entirely unlikely too. In fact the above Objective-C snippet is one of the few cases where Objective-C's forgiving `nil` behaviour doesn't save you from a crash.