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

Антон Жилин antonyzhilin at gmail.com
Tue Mar 15 05:55:12 CDT 2016


These directives (including current os thingy) don't have # in front of
them. I think there is inconsistency here.

Consider:

#if 2 + 3 == 5
//...
#end

let v: Bool = #os(iOS)

#if #os(iOS)
//...
#end

I mean, #os and its suggested look-a-likes are not normal functions and so
should have # in front of them. #if has orthogonal responsibilities.

- Anton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160315/28545136/attachment.html>


More information about the swift-evolution mailing list