3 ms·
See https://docs.swift.org/swift-book/GuidedTour/Compatibility.html https://docs.swift.org/swift-book/GuidedTour/Compatibility.h... > When the Swift 4.2 compil
by airstrike 8y ago
See https://docs.swift.org/swift-book/GuidedTour/Compatibility.html https://docs.swift.org/swift-book/GuidedTour/Compatibility.h...
> When the Swift 4.2 compiler is working with Swift 3 code, it identifies its language version as 3.4. As a result, you can use conditional compilation blocks like #if swift(>=3.4) to write code that’s compatible with multiple versions of the Swift compiler.