1. Ali Rantakari
  2. Faux Pas
  3. Issues
Issue #8 closed

OldVerboseObjCSyntax mutable collection classes

jlundell
created an issue

+[NSMutableDictionary dictionaryWithObjectsAndKeys:] is treated as though it were +[NSDictionary dictionaryWithObjectsAndKeys:]. The former has no "modern" syntax, and it's not obvious that using modern syntax to create an immutable dictionary and making a mutable copy is a better solution than simply using the old syntax.

Comments (3)

  1. Ali Rantakari repo owner

    Fixed for the next release. The default behavior will be to match the behavior of the related refactoring feature in Xcode, and an option has been added to expect literal initialization syntax also for mutable arrays and dictionaries.

  2. Log in to comment