Swift should honor indentation/whitespace as scope delimiter
| Originator: | kristopherdjohnson | ||
| Number: | rdar://17134653 | Date Originated: | 03-Jun-2014 08:12 PM |
| Status: | Behaves correctly | Resolved: | 06-Jun-2014 03:36 PM |
| Product: | Developer Tools | Product Version: | Xcode 6 |
| Classification: | Enhancement | Reproducible: | N/A |
Summary: Several modern programming languages, including Haskell, Python, and F#, use whitespace indentation instead of curly braces or other begin/end delimiters. The result is code that is easier to read due to the absence of "noisy" punctuation that is redundant when programmers naturally indent their code anyway. Swift should adopt this feature. Version: Xcode 6 Notes: See http://en.wikipedia.org/wiki/Off-side_rule for more information. ---- Response from Apple Developer Relations 06-Jun-2014 03:36 PM Engineering has determined that this issue behaves as intended based on the following: We considered this, and aren't changing the design. We are now closing this bug report. If you have questions regarding the resolution of this issue, please update your bug report with that information. Please be sure to regularly check new Apple releases for any updates that might affect this issue.
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!