[swift-evolution] continuations - "extensions on steroids" idea

Wallacy wallacyf at gmail.com
Tue Oct 31 14:57:04 CDT 2017


Like Adam said, this make much more sense than
"classprivate./typeprivate"...

+1 for me.

You just create another 'bucket'! ;)

Em ter, 31 de out de 2017 às 08:19, Mike Kluev via swift-evolution <
swift-evolution at swift.org> escreveu:

> On 31 October 2017 at 06:57, Goffredo Marocchi <panajev at gmail.com> wrote:
>
>> I like the IB use case :).
>>
>>
> my favourite one would probably be continuations used for protocol
> adoption - no longer the trip to the main class needed to add a variable:
>
> continuation DataSource of MyViewController: UITableViewDataSource {
>
>     private var variable: Bool // ***
>
>     override func tableView(_ tableView: UITableView, cellForRowAt
> indexPath: IndexPath) -> UITableViewCell {
>         ...
>     }
> }
>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171031/28308eb3/attachment.html>


More information about the swift-evolution mailing list