<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 4, 2017, at 7:07 AM, Ted F.A. van Gaalen via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><font face="AvenirNext-Regular" class="">Hi Xiaodi,</font></div><div class=""><font face="AvenirNext-Regular" class=""><br class=""></font></div><div class=""><font face="AvenirNext-Regular" class="">that currently all members of a class or struct are exposed by default by having</font></div><div class=""><font face="AvenirNext-Regular" class="">a default scope of ‘internal’ and are therefore accessible in the entire module</font></div><div class=""><font face="AvenirNext-Regular" class="">is imho very bad unstructured programming practice. </font></div><div class=""><font face="AvenirNext-Regular" class=""><br class=""></font></div><div class=""><font face="AvenirNext-Regular" class="">In no other OOP language it is implemented</font></div><div class=""><font face="AvenirNext-Regular" class="">that way.. </font></div></div></div></blockquote><div><br class=""></div>I think you may be forgetting Java (and Ruby, and Python, and Go, and Objective-C, and…)</div><div><br class=""></div><div>In my experience , the hard-private-by-default comes from C++ and heavily influenced languages like C# and Rust.</div><div><br class=""></div><div>-DW</div></body></html>