UIFont APIs Should Not Duplicate Type Information in Swift 3.0

Originator:mliberatore09
Number:rdar://27250975 Date Originated:07/08/2016
Status:Open Resolved:
Product:Swift Product Version:3.0
Classification:Enhancement Reproducible:N/A
 
Summary:
UIFont APIs such as systemFont(ofSize:), boldSystemFont(ofSize:), etc. duplicate return type information in their signature.

This isn’t a direct violation of the "Prune a match for any type name in the signature from the tail of the preceding selector piece" rule at https://github.com/apple/swift-evolution/blob/master/proposals/0005-objective-c-name-translation.md, as in this case, it’s not introducing a parameter, is not a property, and the functions do have parameters. However, I propose that the word "Font" be pruned from these signatures as it needlessly duplicates type information.

The same could be said for the parameter name in these APIs, `fontSize`. `size` would suffice.

Steps to Reproduce:
N/A

Expected Results:
N/A

Actual Results:
N/A

Version:
Xcode 8.0 beta 2 (8S162m)

Notes:
N/A

Configuration:
N/A

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!