3 ms·
you could just say [NSMutableDictionary dictionary] instead of -alloc -init on the annotated class.
by klausa 11y ago
you could just say
[NSMutableDictionary dictionary]
instead of -alloc -init on the annotated class.
- deleted 11y ago[deleted]
- morbidhawk 11y agoThat's true. The rhs isn't the the most obtrusive part compared to its type declaration: NSMutableDictionary<NSString *, NSString *> * imagine having to pass the typed dictionary into a method, now you've got to add the type declaration to the method signature in addition to it being initialized elsewhere. Its brutal but also worth doing if you stick to Objc.