[swift-evolution] [Review] SE-0141: Availability by Swift version

Jordan Rose jordan_rose at apple.com
Tue Sep 27 19:14:06 CDT 2016


Good question. The “Versioned API” design is for testing a run-time property—it’s asking whether, dynamically, a particular library version is available (#available) or can be assumed available (@available) across the whole process. Since the Swift 4 compiler will use one runtime and standard library whether it’s in 3 mode or 4 mode, checking a run-time property isn’t the semantics we want. This proposal is concerned with the Swift language version at the time of compilation, and only for this particular module. (That’s also why there’s no #available component to the proposal.)

Thanks for bringing this up.
Jordan


> On Sep 26, 2016, at 10:06, Ben Rimmington via swift-evolution <swift-evolution at swift.org> wrote:
> 
> Re: <https://github.com/apple/swift-evolution/blob/master/proposals/0141-available-by-swift-version.md>
> 
> Is the "Versioned API" design in docs/LibraryEvolution.rst not intended for the Swift standard library?
> 
> <https://jrose-apple.github.io/swift-library-evolution/#using-versioned-api>
> 
> <https://jrose-apple.github.io/swift-library-evolution/#publishing-versioned-api>
> 
> -- Ben
> 
> _______________________________________________
> 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