[swift-evolution] continuations - "extensions on steroids" idea
Adam Kemp
adam_kemp at apple.com
Wed Nov 1 11:03:12 CDT 2017
> On Nov 1, 2017, at 8:28 AM, Mike Kluev <mike.kluev at gmail.com> wrote:
>
> name and ledger are essential in this proposal.
>
> no name ->
> no ledger (how to reference it?) ->
What purpose does the “ledger" serve? I’m not sure what this even means.
> anyone can write parts of your class ->
Anyone in the same module, but only if you explicitly declare your class as partial in the first place.
Impartial.swift:
class Impartial {}
Impartial.extra.swift:
partial class Impartial {} // error
Partial.swift:
partial class Partial {}
Partial.extra.swift:
partial class Partial {} // OK
Partial.othermodule.swift:
partial class Partial {} // Error
> anyone can add variables to your class ?! ->
> anyone can access private members of your class ?!
>
> makes no sense without a name and a ledger.
>
> Mike
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171101/9482a390/attachment.html>
More information about the swift-evolution
mailing list