Member-only story
Swift 4.1: New Enhancements in placards
Swift 4.1 is now officially released and you can skim through the enhancements that have been implemented using the images below, information sourced from — The official Swift blog
Enhancement 1: SE-0143 Conditional Conformance
Conditional conformances express the notion that a generic type will conform to a particular protocol only when its type arguments meet certain requirements. For example, the Array
collection can implement the Equatable
protocol only when its elements are themselves Equatable
Enhancement 2: SE-0157 Support recursive constraints on associated types
This proposal lifts restrictions on associated types in protocols. Their constraints will be allowed to reference any protocol, including protocols that depend on the enclosing one (recursive constraints).