AFAIK, if one would extend Swift beyond its &quot;official&quot; specification, it could be done using #-directives and @-attributes, like Swift playgrounds use #imageLiteral(...) and friends. It&#39;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?<br>