Swift 2.2 & 3.0 Features and Proposals

https://github.com/apple/swift-evolution
Swift 3.0

– Requiring Leading Dot Prefixes for Enum Instance Member Implementations:  This is done to remove confusion with different standards at different places.
https://github.com/apple/swift-evolution/blob/master/proposals/0036-enum-dot.md
https://github.com/apple/swift-evolution/blob/master/proposals/0045-scan-takewhile-dropwhile.md
– Features related to Swift Project Manager  ! Long Proposal
https://github.com/apple/swift-evolution/blob/master/proposals/0082-swiftpm-package-edit.md
https://github.com/apple/swift-evolution/blob/master/proposals/0080-failable-numeric-initializers.md
https://github.com/apple/swift-evolution/blob/master/proposals/0076-copying-to-unsafe-mutable-pointer-with-unsafe-pointer-source.md
https://github.com/apple/swift-evolution/blob/master/proposals/0025-scoped-access-level.md
https://github.com/apple/swift-evolution/blob/master/proposals/0052-iterator-post-nil-guarantee.md
https://github.com/apple/swift-evolution/blob/master/proposals/0060-defaulted-parameter-order.md

Swift 2.2 features: https://swift.org/blog/swift-2-2-released/
https://github.com/apple/swift-evolution/blob/master/proposals/0014-constrained-AnySequence.md
https://github.com/apple/swift-evolution/blob/master/proposals/0014-constrained-AnySequence.md
Providing some default tuple comparison.
– Naming Functions with Argument Labels in case of function overloading
https://github.com/apple/swift-evolution/blob/master/proposals/0021-generalized-naming.md
– typealias and associatedtype
Associated type now use the associatedtype keyword and typealias is available for implementing true associated type aliases. Earlier typealias keyword was used outside of protocols to declare type aliases and in protocols to declare associated types. Now it looks like this.
https://github.com/apple/swift-evolution/blob/master/proposals/0092-typealiases-in-protocols.md
https://github.com/apple/swift-evolution/blob/master/proposals/0011-replace-typealias-associated.md

protocol Sequence {
  associatedtype Iterator : IteratorProtocol
  typealias Element = Iterator.Element
}

typesaliases refers to Generic Type Aliases. It allows type aliases to introduce type parameters, which are in scope for their definition.
https://github.com/apple/swift-evolution/blob/master/proposals/0048-generic-typealias.md

– Expanding Swift Self to class members and value types
Self.dynamicType -> ‘Self’ to as shorthand for referring to the containing type (in the case of structs, enums, and final class) or the dynamic type (in the case of non-final classes).
https://github.com/apple/swift-evolution/blob/master/proposals/0068-universal-self.md

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s