I am really not in favor of the parametrized access keywords.

To me, private(module) and private(file) seem redundant. Module already implies 
it is restricted to the module, and file already implies it is restricted to 
the file so the private keyword just seems unnecessary in my opinion.

“unknown” could just be local or file
“internal” really should become “module” or “modular” for clarity reasons


>> To summarize the place we’d like to end up:
>> 
>> - “public” -> symbol visible outside the current module.
>> - “internal” -> symbol visible within the current module.
>> - unknown -> symbol visible within the current file.
>> - “private” -> symbol visible within the current declaration (class, 
>> extension, etc).
> 

_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to