[Swift] Either require semicolons or don't

Originator:amolloy
Number:rdar://17301982 Date Originated:6/13/14
Status:Open Resolved:
Product:Developer Tools Product Version:
Classification: Reproducible:
 
This is admittedly a bit of a nit, but the current rules for semicolons in Swift are going to lead to ugly, inconsistent code. Semicolons should either be required between every statement, or disallowed entirely with the one exception of having multiple statements on a single line.

For whatever it’s worth, my preference would be to remove the semicolon entirely and disallow having multiple statements on a single line. There are few, if any, circumstances where having multiple statements on a single line improves code in any way.

Steps to Reproduce
No steps.

Expected Results
N/A

Actual Results
N/A

Configuration
Any

Xcode Version
Xcode 6 Beta 1

Additional Notes

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!