[swift-evolution] [Proposal] Swift 2.2: #if swift language version

James Campbell james at supmenow.com
Sun Dec 20 16:01:38 CST 2015


Also in future versions features may go away meaning older libraries may assume that greater than swift 2 is all that is needed to imply compatibility. Also libraries may be written against features they may not know which version of swift it will get into. Additionally certain features aren't available across platforms so how do you know what swift 2 means across platforms ? 

Swift version conditionals are a useful fallback but we should also try and make feature conditionals a first class citizen too. 

I love the @supports syntax in CSS, if we could do that then that would be awesome :)  it's a great way of handling implementations across platforms 

Sent from my iPhone

On 20 Dec 2015, at 21:00, Andrey Tarantsov via swift-evolution <swift-evolution at swift.org> wrote:

>> I suspect with the race to a stable language, the plan is to design features as if the language were to stay solid.
> 
> Are you implying that Swift 4 will have zero new features? Nothing that libraries will want to use conditionally when available?
> 
> A.
> 
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution


More information about the swift-evolution mailing list