Skip to content

5.1

Compare
Choose a tag to compare
@uraimo uraimo released this 05 Oct 06:52
· 50 commits to master since this release
0f9ed43

It's time for another release of Swift on ARM, this time around only one additional patch (#54) has been added to the required fixes (already merged into master).

Notably added in 5.1:

  • Property wrappers introduce a consistent and general purpose syntax for defining custom access patterns for property values, including (and not limited to) delayed initializers, atomic operations, thread-specific storage, and copy-on-write behavior
  • Opaque result types allow the use of a generic type to support different types conforming to the same protocol or to hide implementation details in APIs
  • The return keyword is not necessary for single expression functions or getters
    Self can now be used for classes and value types
  • The compiler now synthesizes default values for properties with default initializers

Official announcement with all the details: https://swift.org/blog/swift-5-1-released/