[swift-evolution] [META] Re-invigorating the compiler directive discussion

Dmitri Gribenko gribozavr at gmail.com
Mon Mar 14 16:12:55 CDT 2016

On Mon, Mar 14, 2016 at 1:41 PM, Erica Sadun <erica at ericasadun.com> wrote:
>> On Mar 14, 2016, at 1:55 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
>> On Mon, Mar 14, 2016 at 11:48 AM, Erica Sadun via swift-evolution
>> <swift-evolution at swift.org> wrote:
>>> Question to everyone with regard to `#if platform()`:
>>> Right now, I'm leaning towards tossing `#if platform()` since #if
>>> imports(Darwin) can universally distinguish Apple.
>> There's a direction that we want to move to a unified name for the
>> libc module for all platform, so "can import Darwin" might not be a
>> viable long-term strategy.
> Dmitri:
> Will this do it? https://gist.github.com/erica/103b5cd17bde4171ae0b

Sounds like a good direction, but to validate it, could you think of
some things you would write in practice that would be guarded by these
#if conditions?


(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/

More information about the swift-evolution mailing list