<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></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 Mar 15, 2016, at 3:09 PM, Shawn Erickson &lt;<a href="mailto:shawnce@gmail.com" class="">shawnce@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><br class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Tue, Mar 15, 2016 at 2:05 PM Erica Sadun &lt;<a href="mailto:erica@ericasadun.com" class="">erica@ericasadun.com</a>&gt; wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">I see two results on the gmane search and neither one seems to match what you're talking about:</div><div class=""><a href="http://search.gmane.org/?query=Scoped&amp;author=Shawn&amp;group=gmane.comp.lang.swift.evolution&amp;sort=relevance" target="_blank" class="">http://search.gmane.org/?query=Scoped&amp;author=Shawn&amp;group=gmane.comp.lang.swift.evolution&amp;sort=relevance</a></div><div class=""><br class=""></div><div class="">Do you have a direct link to the message I should be reading?</div><div class=""><br class=""></div><div class="">Thanks!</div></div></blockquote><div class=""><br class=""></div><div class=""><a href="https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20160314/012640.html" class="">[swift-evolution] SE-0025: Scoped Access Level, next steps</a>&nbsp;</div></div></div>
</div></blockquote></div><br class=""><div class=""><br class=""></div><div class="">The state of the art is:</div><div class=""><pre style="white-space: pre-wrap; background-color: rgb(255, 255, 255);" class="">public private(set) var foo = 0</pre></div><div class="">If I'm reading and understanding this correctly, you propose a generally postfix solution like this:</div><div class=""><pre style="white-space: pre-wrap; background-color: rgb(255, 255, 255);" class="">public var foo = 0 {  // marks default getter and setter public however...
  private set         // marks default setter private
}
</pre></div><div class="">Unless there's a specific getter or setter implementation, I'm not fond of the</div><div class="">postfix declarations. In my opinion `private set` is modifying `public`, not `var foo = 0`</div><div class=""><br class=""></div><div class="">I recognize that in a type rather than a global variable, the modification</div><div class="">override could not be adjacent. Another comparison. Current art:</div><div class=""><pre style="background-color: rgb(255, 255, 255);" class=""><span style="white-space: pre-wrap;" class="">public struct bar {
    private(set) var gar = 0
}</span></pre></div><div class="">vs (what I think is) your suggestion:</div><div class=""><pre style="background-color: rgb(255, 255, 255);" class=""><span style="white-space: pre-wrap;" class="">public struct bar {
    var gar = 0 {
        private set
    }
}</span></pre><div class="">And again, moving the access control modification to the end just doesn't look&nbsp;</div><div class="">right to me or seem to enhance readability. :(</div></div><div class=""><br class=""></div><div class="">-- E</div><div class=""><br class=""></div></body></html>