<div dir="ltr">I'm inclined to agree. I'm not opposed outright to that degree of configurability but at the same time I wonder if the complexity is needed—it feels like it's getting close to the "fine-tuned auditing" that I argued against during the discussions about access control.<div><br></div><div>It could also be done additively later, if a significant amount of people using the feature found that they did need it.</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, May 5, 2017 at 3:09 PM BJ Homer <<a href="mailto:bjhomer@gmail.com">bjhomer@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> On May 5, 2017, at 1:34 PM, Xiaodi Wu <<a href="mailto:xiaodi.wu@gmail.com" target="_blank">xiaodi.wu@gmail.com</a>> wrote:<br>
><br>
> Why guess as to which of these is appropriate? Couldn't you support the current and all variants of this behavior by allowing access modifiers on 'deprecated'?<br>
><br>
> * public deprecated: warning when used from a different module, behaves as though there's a public deprecated pass-through<br>
><br>
> * internal deprecated: warning when used from a different file<br>
><br>
> * fileprivate deprecated: warning when used from a different scope<br>
><br>
> * private deprecated: synonymous with deprecated for backwards compatibility, behaves like it does today<br>
><br>
> (No need for complicated parsing; SE-25 allows a higher nominal access modifier inside a lower one without warning, so it's fine to allow 'public deprecated' to decorate a private member with no effect.)<br>
<br>
I’m not opposed to more configurability like that. I worry it makes the feature more complicated and potentially delays the acceptance or implementation of this feature, though. If it’s easy to implement, though, then sure, I like that.<br>
<br>
-BJ</blockquote></div>