Swift: Make parentheses optional for function declarations without arguments

Originator:alek.astrom
Number:rdar://18029610 Date Originated:2014-08-15
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 6 beta 5
Classification:Enhancement Reproducible:N/A
 
Parentheses in function declarations without arguments is unnecessary syntax.

When calling, the empty parentheses have the purpose of making it explicit that a function call is made instead of a variable being accessed. But when declaring functions, the empty parentheses does not convey anything and just looks like an implementation detail of the compiler. Please make them optional.

func viewDidLoad {
    super.viewDidLoad()
}

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!