Hacker News new | past | comments | ask | show | jobs | submit login

you could just say

    [NSMutableDictionary dictionary]
instead of -alloc -init on the annotated class.



That'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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: