Improve syntax for default Array/Dictionary/Set initializers

Description

From https://github.com/raywenderlich/swift-style-guide

Preferred:

Not Preferred:

In short, we need to:
1) Explicitly specify type name for variables / properties of for Array/Dictionary/Set type;
2) Use `[]` for empty array & set initializers, `[:]` for empty dictionary initializers;
3) Continue using a longer syntax (i.e. `[Any]()`) for places other than variable declarations (when a type name cannot be easily inferred).

Environment

None

Assignee

Alex Petuschak

Reporter

Alex Petuschak

Labels

None

Git Branch Name

None

GitHub Issue

None

Components

Fix versions

Priority

Medium
Configure