> On Apr 4, 2017, at 7:07 AM, Ted F.A. van Gaalen via swift-evolution
> <[email protected]> wrote:
>
> Hi Xiaodi,
>
> that currently all members of a class or struct are exposed by default by
> having
> a default scope of ‘internal’ and are therefore accessible in the entire
> module
> is imho very bad unstructured programming practice.
>
> In no other OOP language it is implemented
> that way..
I think you may be forgetting Java (and Ruby, and Python, and Go, and
Objective-C, and…)
In my experience , the hard-private-by-default comes from C++ and heavily
influenced languages like C# and Rust.
-DW
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution