-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: why are @available directives commented out? #3
Comments
I’d guess System was supposed to be included in those versions of the OSes, but then they decided to make it an open source Swift Package, compatible with Linux |
This is due to language/tooling issues. We'd like the ability to add availability based on conditional compilation for ABI-stable builds of Swift System while not adding availability for package builds (i.e. a source dependency). For now, we include, but comment out, the availability declarations matching what has already been shipped in binary releases. |
@Snowy1803 Note that System is included in those versions of the OSes (https://developer.apple.com/documentation/system). |
Would it help to add an explanation to it somewhere, either in comment(s) or in the documentation? |
@BasThomas definitely. I'm trying to put together some more extensive documentation and this should be part of that. |
I put this in the new FAQ issue: #18 |
Great! |
Like e.g. here:
swift-system/Sources/System/FileDescriptor.swift
Line 17 in 8ffa04c
Are these supposed to be commented out, and if so, why?
The text was updated successfully, but these errors were encountered: