Swift class/static methods should use the same keyword for clarity & coherence.

Originator:raphael
Number:rdar://17249746 Date Originated:10-Jun-2014 03:28 PM
Status:Open Resolved:
Product:Developer Tools Product Version:WWDC14 Release
Classification:Enhancement Reproducible:Not Applicable
 
Currently in Swift, you mark class methods with the "class" keyword and static funcs (in structs) with the "static" keyword. As both share the exact same meaning, I'd recommend that Swift uses the same "static" keyword in both cases instead, as this is more coherent.

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!