Swift 3 API Design Guidelines

The design of commonly-used libraries has a large impact on the overall feel of a programming language. Great libraries feel like an extension of the language itself, and consistency across libraries elevates the overall development experience. To aid in the construction of great Swift libraries, one of the major goals for Swift 3 is to define a set of API design guidelines and to apply those design guidelines consistently.

The effort to define the Swift API Design Guidelines involves several major pieces that, together, are intended to provide a more cohesive feel to Swift development.

swift.org/blog/swift-3-api-design/

Swift 3 aims to set API design guidelines and apply them across libraries to make the language feel more unified. Key efforts include drafting the guidelines, updating the standard library on a specific branch, and improving how Objective-C APIs translate into Swift with heuristics and annotations.

The compiler will check code for guideline adherence and suggest fixes, while a migrator will help update Swift 2 code to Swift 3.


Category:

Tag:

Year: