<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">That would be definitely a great addition to the language. IMO, Dart gets this right:<div class=""><br class=""></div><div class=""><a href="https://www.dartlang.org/tutorials/language/futures" class="">https://www.dartlang.org/tutorials/language/futures</a></div><div class=""><a href="https://www.dartlang.org/tutorials/language/streams" class="">https://www.dartlang.org/tutorials/language/streams</a></div><div class=""><br class=""></div><div class="">In general, I would prefer an async story like this:</div><div class=""><br class=""></div><div class="">- support coroutines / generators (yield)</div><div class="">- use coroutines to implement Future and Stream/Observable</div><div class="">- optionally provide async/await as syntax sugar for Future/Stream (or just reuse yield)</div><div class=""><br class=""></div><div class="">-g.</div><div class=""><br class=""><div class=""><div class=""><div><blockquote type="cite" class=""><div class="">On 29 Aug 2017, at 4:56 AM, Howard Lovatt via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Many of the currently popular server side frameworks are switching to Reactive Streams:<div class=""><br class=""></div><div class="">&nbsp; &nbsp; <a href="http://en.wikipedia.org/wiki/Reactive_Streams#Adoption" class="">http://en.wikipedia.org/wiki/Reactive_Streams#Adoption</a></div><div class=""><br class=""></div><div class="">for their underlying communication, including Akka. Reactive Streams are also to become builtin to Java, as the Flow class, in version 9.</div><div class=""><br class=""></div><div class="">Would it be wise if Swift 5 also builtin Reactive Stream protocols and built its Actor implementation etc. on top of this protocol?<br class=""><div class="gmail_extra"><br clear="all" class=""><div class=""><div class="gmail_signature">&nbsp; -- Howard.<br class=""></div></div><div class="gmail_signature"><br class=""></div><div class="gmail_signature">More info on Reactive streams:</div><div class="gmail_signature"><br class=""></div><div class="gmail_signature">&nbsp; &nbsp;&nbsp;<a href="https://github.com/reactive-streams/reactive-streams-jvm/blob/v1.0.1/README.md#specification" class="">https://github.com/reactive-streams/reactive-streams-jvm/blob/v1.0.1/README.md#specification</a></div><div class="gmail_signature"><br class=""></div><div class="gmail_signature">&nbsp; &nbsp;&nbsp;<a href="http://bryangilbert.com/post/code/scala/akka-reactive-streams/" class="">http://bryangilbert.com/post/code/scala/akka-reactive-streams/</a></div><div class="gmail_signature"><br class=""></div>
<div class="gmail_quote"><br class=""></div></div></div></div>
_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></div></blockquote></div><br class=""></div></div></div></body></html>