Swift parenthesis syntax misleading
| Originator: | raphael | ||
| Number: | rdar://17358536 | Date Originated: | 18-Jun-2014 01:48 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 6 Beta2 |
| Classification: | Enhancement | Reproducible: | Not Applicable |
Swift uses parenthesis for multiple purpose. (): Void (() -> ())?: optional closure (parentheses purpose is to enable defining an optional) (1,2): tuple with 2 values Tuples are only when there are at least 2 values separated by a comma. This is unintuitive.
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!