[swift-evolution] #pragma

Anton Zhilin antonyzhilin at gmail.com
Mon Sep 5 04:08:23 CDT 2016


AFAIK, if one would extend Swift beyond its "official" specification,
it could be done using #-directives and @-attributes, like Swift
playgrounds use #imageLiteral(...) and friends. It's somewhat equivalent to
pragmas of C++. On the other hand, things that are not understood by target
compiler, but are features of an IDE, are done using comments. Fair enough?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160905/31cbf385/attachment.html>


More information about the swift-evolution mailing list