<div dir="ltr">Does this mean that all current code using Dispatch is broken? Why not just have a `Dispatch` module which would wrap the current C `LibDispatch` module (per SPM naming convention). This way, not only would existing code still work after simply changing `import Dispatch` to `import LibDispatch`, but the implementation of the new Dispatch module would be much simpler since it simply be a wrapper. Plenty of third party libraries do this already (provide a Swifty api built on top of the current c api's). I don't see any practical reason why Apple's Dispatch module should get this special treatment. I mentioned this on the mailing list but got mostly ignored...</div><br><div class="gmail_quote"><div dir="ltr">On Thu, May 19, 2016 at 9:49 PM Chris Lattner via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> On May 19, 2016, at 9:02 PM, Patrick Smith <<a href="mailto:pgwsmith@gmail.com" target="_blank">pgwsmith@gmail.com</a>> wrote:<br>
><br>
> Great stuff! Truly is a massive improvement to an already venerable API.<br>
><br>
> Was there any consideration to make this a new module ‘Dispatch’, and drop all the Dispatch- prefixes? Or rather, what is the reason for keeping the prefixes? (Group could become WorkGroup to lessen naming conflicts)<br>
<br>
We discussed it briefly, but Swift currently lacks a developed model for submodules, and tackling it should only be done with a holistic design. If/when we introduce them and adapt dispatch to use them, we believe that we can do so without massive impact to users code (we can phase it in over time).<br>
<br>
-Chris<br>
_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</blockquote></div><div dir="ltr">-- <br></div><div><div dir="ltr"><div><div>Dan Appel<br></div></div></div></div>