[swift-evolution] Proposal Idea : Library (third party) Importable Checking
felixcca at yahoo.ca
Fri Jan 15 01:17:57 CST 2016
If it's meant to be included in a library, don't we need a linkage mechanism that will expose these symbols only if another library is linked in?
> Le 15 janv. 2016 à 01:43:16, Jo Albright via swift-evolution <swift-evolution at swift.org> a écrit :
>> Interesting idea. Unless I'm misunderstanding something, it seems to me you could kill both birds with one stone. If we add an 'importable' predicate to the '#if' language, then you can already use that to conditionalize the import:
>> #if importable(ThirdPartyLibrary)
>> import ThirdPartyLibrary
>> /* decls that depend on library */
> I am totally on board with that idea… since you could declare a type outside of the “#if importable” scope and add an extension inside the scope.
> Designer . Developer . Nerd
> Jo Albright
> swift-evolution mailing list
> swift-evolution at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution