Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDave Hanna
Courses Plus Student 2,969 PointsWhy is Xcode giving me an error when writing println?
//: Playground - noun: a place where people can play
import UIKit
var str : String = "Hello "
let modernProgrammingLanguage: String = "Swift"
var greeting: String = str + modernProgrammingLanguage //implicit type String or inferred type String
println("To build an iPhone app we need to learn ") print(modernProgrammingLanguage)
3 Answers
Tommy Choe
38,156 PointsHey David, println has been deprecated as of Swift 2.0. Just use print instead.
If you want to add a new line at the end you can pass it in as an argument to the terminator parameter.
Hope that made sense.
Sly Yi
1,849 Pointsshould i be taking this course or the new swift 2.0 instead?
Mladen Rajkovic-Alvik
7,279 PointsI wonder the same thing. Should we take this basic swift course or the new swift 2.0 instead?