Ugh, no. I've run into several situations in ObjC where I forget to alloc a NSArray or NSDictionary into an ivar, and then I go and put objects in it, and get really confused later when I query the array/dict and find nothing in it... That's one behavior of ObjC I absolutely hate. I'd rather a quick segfault that'll tell me the problem in 2 seconds vs. staring at the code for an hour trying to figure it out.
Comments
Ugh, no. I've run into several situations in ObjC where I forget to alloc a NSArray or NSDictionary into an ivar, and then I go and put objects in it, and get really confused later when I query the array/dict and find nothing in it... That's one behavior of ObjC I absolutely hate. I'd rather a quick segfault that'll tell me the problem in 2 seconds vs. staring at the code for an hour trying to figure it out.