<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="">Before bringing this forward, I’ve tried brackets &nbsp;{ } as well&nbsp;<div class="">for “my feature” but found this to be a bit awkward,&nbsp;</div><div class="">confusing with real program { } blocks,&nbsp;</div><div class="">also because it has nothing to do with blocks</div><div class="">(except for the class or struct body as limitation)&nbsp;</div><div class="">rather its effect is sequential, line by line,&nbsp;</div><div class="">within the class or struct body.<div class="">e.g:</div><div class="">&nbsp; &nbsp; &nbsp; default scope here.</div><div class="">&nbsp; private:</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp;source lines</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp;all declarations in lines following are private</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp;until another in-line scope designator is encountered.</div><div class="">&nbsp; defalutscope:</div><div class="">&nbsp; &nbsp; &nbsp; source lines</div><div class="">&nbsp; &nbsp;public:</div><div class="">&nbsp; &nbsp; &nbsp; source lines</div><div class="">&nbsp; &nbsp; end of class/ struct/&nbsp;</div><div class=""><br class=""></div><div class="">Thus, it acts more or less like a compiler directive…&nbsp;</div><div class="">therefore, perhaps this would better:&nbsp;</div><div class=""><br class=""></div><div class="">@private:</div><div class="">&nbsp; &nbsp;source lines</div><div class="">@public:</div><div class="">&nbsp; &nbsp;source lines</div><div class="">@defaultscope: &nbsp;// returns to default scope&nbsp;</div><div class="">&nbsp; source lines.</div><div class="">&nbsp;&nbsp;</div><div class="">?</div><div class=""><br class=""></div><div class="">TedvG</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 20. Jun 2017, at 18:32, Tino Heth &lt;<a href="mailto:2th@gmx.de" class="">2th@gmx.de</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""><blockquote type="cite" class=""><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">You can already effectively have these "regions" using extensions, with the exception of stored properties since they can't be placed there.</span></div></blockquote></div>I still think nested extensions would have been a good addition to the language: If we had those,&nbsp;<div class=""><br class=""></div><div class="">struct MyType {</div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>private {</div><div class=""><span class="Apple-tab-span" style="white-space:pre">                </span>var myPrivateVar: Int?</div><div class=""><span class="Apple-tab-span" style="white-space:pre">                </span>var anotherOne: String?</div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div class="">}</div><div class=""><br class=""></div><div class="">would be a rather small piece of syntactic sugar...</div></div></div></blockquote></div><br class=""></div></div></body></html>