Swift's rules for external parameter names are too complex

Originator:david.w.hart
Number:rdar://17199633 Date Originated:06-Jun-2014 08:59 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Swift seed 1
Classification:Enhancement Reproducible:Always
 
I think that the rules that govern external parameter names are too convoluted. The way I understand it, external parameter names need to appear before internal parameter names, but they don't need to be repeated if they are the same as the internal parameter name and a # symbol is prepended to the internal parameter name, but that symbol is un-necessary for parameters with default values. I understand that these rules were implemented to reduce the noise in function signatures, but they are too complex for my taste.

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!