A few differences:

  1. print vs println:

The print function prints messages in the Xcode console when debugging apps.

The println is a variation of this that was removed in Swift 2 and is not used any more. If you see old code that is using println, you can now safely replace it with print.

Back in Swift 1.x, print didn't add newline characters at the end of the printed string, whereas println did. But nowadays, print always adds the newline character at the end of the string, and if you…

Keep the story going. Sign up for an extra free read.

You've completed your member preview for this month, but when you sign up for a free Medium account, you get one more story.
Already have an account? Sign in

Mr.Javed Multani

Written by

iOS Developer, Triple graduated, Passionate, Love workout, blogger

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade