<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Ah, that makes sense. Thanks!</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">&nbsp; -- Chris<br><br>Sent from my iPhone</div><div><br>On Dec 8, 2015, at 1:09 PM, Max Howell &lt;<a href="mailto:max.howell@apple.com">max.howell@apple.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html charset=utf-8">Chris, adding the C prefix is our recommendation so it is clear at the import statement that the sources in question are using the raw C interface rather than any “Swifty” wrapper.<div class=""><br class=""></div><div class="">We hope thus that the community will provide modules that add error handling, default arguments, closures, etc. while (importantly) still maintaining the general API of the C library in question and then name them without the C prefix.</div><div class=""><br class=""></div><div class="">Here is our documentation with further justification:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/apple/swift-package-manager/blob/master/Documentation/SystemModules.md" class="">https://github.com/apple/swift-package-manager/blob/master/Documentation/SystemModules.md</a></div><div class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 8, 2015, at 12:55 PM, Chris Hanson via swift-users &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On Dec 7, 2015, at 7:40 PM, Gage Morgan via swift-users &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; wrote:<br class=""><div class=""><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">1) Map the cairo.h file to a system module named CCairo</div></div></blockquote><br class=""></div><div class="">Since Swift can natively call C APIs, I would recommend just using “Cairo” as the module name.</div><div class=""><br class=""></div><div class="">There’s no need to distinguish a module as being related to a C API.</div><div class=""><br class=""></div><div class="">&nbsp; -- Chris</div><div class=""><br class=""></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=cbMbdH1LnH6O78Q-2BHw3jtU8ikibH470Fh9meAJKpwSpoKhdKKPuX-2B2Jnk7dD572zPJsRulYrgNOBpdDVRZ-2FFSON6hO0PUhIAdLQW70kLvSuB25ouhH83vKPVHkM3C7gZHLagrhhOMI0sQcz9VrGHGOqN7IK3D-2BBJiT3GP1XOgduYPjkW4MGCkcdxpa9hnHetw9bNjLvlLcwU-2BKgxC1fwCZdTy4GplEuSZVWuyES3iyQ-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;" class="">
</div>
_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-users">https://lists.swift.org/mailman/listinfo/swift-users</a><br class=""></div></blockquote></div><br class=""></div></div></div></blockquote></body></html>