Default playground should use better default variable name.
| Originator: | mzornek | ||
| Number: | rdar://28395209 | Date Originated: | 20-Sep-2016 06:24 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | 8.0 |
| Classification: | Reproducible: | Always |
Summary: Currently a new playground has the following content: //: Playground - noun: a place where people can play import Cocoa var str = "Hello, playground" --- I would contend `str` is a poor variable name and does not meet the standards of the Swift 3 API design: > Name variables, parameters, and associated types according to their roles, rather than their type constraints. https://swift.org/documentation/api-design-guidelines/#naming Steps to Reproduce: 1. Launch Xcode 8.0 2. Make a new macOS playground. 3. Observe the default contents. Expected Results: I would expect a more meaningful variable name, like `message` or `greeting`. Actual Results: `str` Version: 10.12 (16A319) / Version 8.0 (8A218a)
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!