Re: [swift-corelibs-dev] Unavailability macros for APIs that aren't going to be implemented on Linux?

2017-08-02 Thread Ian Partridge via swift-corelibs-dev
I think a compile-time failure is appropriate and most helpful to a developer. On 2 August 2017 at 09:38, Alex Blewitt via swift-corelibs-dev < swift-corelibs-dev@swift.org> wrote: > > On 28 Jul 2017, at 20:30, Alex Blewitt via swift-corelibs-dev < > swift-corelibs-dev@swift.org> wrote: > > In

Re: [swift-corelibs-dev] Unavailability macros for APIs that aren't going to be implemented on Linux?

2017-08-02 Thread Alex Blewitt via swift-corelibs-dev
> On 28 Jul 2017, at 20:30, Alex Blewitt via swift-corelibs-dev > wrote: > > In the meantime I'll take a stab next week at proposing some unavailability > annotations for some of the stuff which almost certainly doesn't make sense, > to do with Mach ports and

Re: [swift-corelibs-dev] Unavailability macros for APIs that aren't going to be implemented on Linux?

2017-07-28 Thread Alex Blewitt via swift-corelibs-dev
On 28 Jul 2017, at 19:44, Tony Parker wrote: > > This sounds like a good plan to me. We’ll have to discuss the specifics of > what is marked unavailable this way, probably best via code review. > > I think we had more hope for some of the more-dynamic methods (e.g. >

Re: [swift-corelibs-dev] Unavailability macros for APIs that aren't going to be implemented on Linux?

2017-07-28 Thread Tony Parker via swift-corelibs-dev
This sounds like a good plan to me. We’ll have to discuss the specifics of what is marked unavailable this way, probably best via code review. I think we had more hope for some of the more-dynamic methods (e.g. NSSortDescriptor, NSExpression), but it does seem clear at this point that the

Re: [swift-corelibs-dev] Unavailability macros for APIs that aren't going to be implemented on Linux?

2017-07-28 Thread Ian Partridge via swift-corelibs-dev
Hi Al, thanks for bringing this up. My view is that we shouldn't have API in the project which is never going to be implemented. The contents of swift-corelibs-foundation should represent a baseline of fundamental types and functionality which is useful to all applications and can be implemented

[swift-corelibs-dev] Unavailability macros for APIs that aren't going to be implemented on Linux?

2017-07-28 Thread Alex Blewitt via swift-corelibs-dev
I've pushed a change which will add an unavailability warning for a method which was deprecated at the point of being added to Swift, has never worked, and likely never will: https://github.com/apple/swift-corelibs-foundation/pull/1140