[swift-evolution] warnings for out of scope?

Robert Widmann devteam.codafi at gmail.com
Wed Jan 25 12:27:13 CST 2017


So, to be clear, a warning about making internal variables more private based on their usage in the entire module?  

Sounds doable.  Probably wouldn't need to go through evolution to get it too (but I'll let others make that call).  Please file an SR about this too.

~Robert Widmann

2017/01/25 3:25、Dave Kliman via swift-evolution <swift-evolution at swift.org> のメッセージ:

> Hi!
> 
> I’m somewhat new to swift, so this issue may have been covered.
> 
> I really like how I get a warning for variables I’ve declared, but have not mutated, or constants that I did not read.
> 
> What about warnings for anything not accessed outside its declared scope, encouraging the use of private, or fileprivate more often?
> 
> -Dave
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170125/50318a3b/attachment.html>


More information about the swift-evolution mailing list