Trailing closure syntax should not be sensitive to whitespace
| Originator: | samdeane | ||
| Number: | rdar://17231834 | Date Originated: | 09-Jun-2014 03:32 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode6-Beta (6A215l) |
| Classification: | UI/Usability | Reproducible: | Always |
Trailing closures require the opening brace to be on the same line. This effectively imposes the K&R style for trailing closures - which, if you want to be consistent within your own code, imposes it for everything. This seems wrong, and dangerous. Passing code through a formatter which only changes whitespace should not have the potential to break things!
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!
My bug, http://www.openradar.me/17343981, was just closed as a dupe of this one.