<p dir="ltr">How would this work on linux or windows?, on linux there are several dozen possible GUI targets, this sounds far more like a standard patterm recomendation that GUI binding library authors should provide than something that should be a language feature. </p>
<div class="gmail_quote">On Jan 19, 2016 11:39 AM, "Charles Srstka via swift-evolution" <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2016-01-18 22:24, FĂ©lix Cloutier wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In terms of which functions need it, I think that reporting progress<br>
is a relatively niche feature.<br>
</blockquote>
<br>
How is it niche? Very few apps don't have any places where progress tracking (and user cancellation) would be useful, and it's currently something that has to be done with workarounds that are either clunky or unsafe.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I would by far prefer that we work on<br>
infrastructure to implement a library-driven solution. To me, it would<br>
be a missed opportunity to show off what the language can (will be<br>
able to) do without having to bake it into the compiler.<br>
<br>
For instance, this could probably be solved without specific compiler<br>
support if Swift had a macro system and resumable functions.<br>
</blockquote>
<br>
Apple has repeatedly stated in the past that the lack of macros/a preprocessor is supposed to be a feature, not a bug (cf. <a href="https://developer.apple.com/swift/blog/?id=4" rel="noreferrer" target="_blank">https://developer.apple.com/swift/blog/?id=4</a>). I know there have occasionally been some statements on the lists contradicting the official stance, but nonetheless I'm not sure we can count on Swift gaining a macro system. Also, implementing things like this via macros seems a bit... icky to my personal tastes.<br>
<br>
Are there any plans to add resumable functions to Swift? I know it's been pitched a few times, but it didn't seem to me like it gained much traction.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Also, the first two arguments have merit, but it's highly improbable<br>
that you'll be able to use whatever solution we come up with in OSes<br>
older than OS X 10.11 or iOS 9 anyway.<br>
</blockquote>
<br>
All additions to Swift so far have been back-portable to 10.9, given that the runtime gets bundled into the app.<br>
<br>
Charles<br>
<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>