这是indexloc提供的服务,不要输入任何密码
Skip to content

Modest Swift 5.1 updates needed #314

@rayfix

Description

@rayfix

These come to mind:

  1. Single expressions of return should elide the return keyword. I think this keeps with the spirit of minimalism in the current guide and is what the Swift Apprentice and Swift Algorithms books have adopted in the coming new editions.

  2. We should probably solicit feedback from the SwiftUI book authors for best practices on formatting body function builders.

  3. Prefer use of Self instead of the explicit name of the type when possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions