- Mastering macOS Programming
- Stuart Grimshaw
- 28字
- 2025-04-04 19:10:24
Printing to the console
Swift's print() command automatically calls an object's String representation, so these last two lines of code are equivalent:
let age = 6
print("\(age)")
print(age)