Is asserting that every object creation succeeded necessary in Objective C?
问题 I have recently read Apple's sample code for MVCNetworking written by Apple's Developer Technical Support guru Quinn "The Eskimo!". The sample is really nice learning experience with what I guess are best development practices for iOS development. What surprised me, coming from JVM languages, are extremely frequent assertions like this: syncDate = [NSDate date]; assert(syncDate != nil); and this: photosToRemove = [NSMutableSet setWithArray:knownPhotos]; assert(photosToRemove != nil); and this