What is the difference between NSLog()
, println
, and print
?
From my experience and understanding, they all write in the Console/Debugging area but why is there the change in Swift v1.2 and v2.0?
If you use 2.0 then print
will offer more functionality, but they are still the same thing. Please refer to the documentation to see the added functionality.
https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/
Also don't use NSLog if you are using Swift