> …
> Additionally, the design allows ‘final’ to take any one of those visibility 
> levels as a parameter, to indicate that the type should be treated as ‘final’ 
> at and above the specified scope. Thus ‘final(public)’ prevents subclassing 
> outside the module, while ‘final(internal)’ prevents it outside the ‘private’ 
> scope. For consistency, ‘final(private)’ is also permitted, although it means 
> the same thing as ‘final’ by itself.

I feel final(public) could be confusing given how we currently have 
private(get/set). What about public(final)? That’s at least consistent with 
current access syntax.

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

Reply via email to