Re: [swift-evolution] Availability checking of libraries (weak linking?)

2017-01-19 Thread Swizzlr via swift-evolution
Thanks all, Ben's answer was exactly what I was looking for; Slava's suggestion merits discussion perhaps when canImport is available. Thanks again! Tom Sent from my iPhone > On 19 Jan 2017, at 02:07, Ben Rimmington wrote: > > >> On 19 Jan 2017, at 00:24, Swizzlr wrote: >> >> Say I have an

Re: [swift-evolution] Availability checking of libraries (weak linking?)

2017-01-18 Thread Slava Pestov via swift-evolution
Extending availability to support library versioning would be a great proposal. You should also take a look at the library evolution proposal, where this functionality will be required to implement the resilience model: https://github.com/apple/swift/blob/master/docs/LibraryEvolution.rst Slava

Re: [swift-evolution] Availability checking of libraries (weak linking?)

2017-01-18 Thread Ben Rimmington via swift-evolution
> On 19 Jan 2017, at 00:24, Swizzlr wrote: > > Say I have an awesome type, and I provide some extensions that makes it work > really well with a few other packages. > > I don't want to force those packages on my users, but if they have them, I > want to extend them with my awesome type/functio