Swift's closure simplification without parameters could cause lasy programmers to write unreadable code

Originator:david.w.hart
Number:rdar://17200184 Date Originated:06-Jun-2014 09:33 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Swift seed 1
Classification:Enhancement Reproducible:Always
 
I understand the wish to allow options to simplify closures in swift to be more terse. But I believe that the simplification that allows to avoid parameters and use $0, $1, etc... instead is bad idea. Lazy programmers will take this too far and can result very quickly in unreadable code.

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!