println("Hello, world")
The above line is a complete line of code in swift.
In swift:
- You don't need to import a seperate library for input/output or string handeling.
- You don't need a main funtion
- You dont need to write semicolons at the end of every statement.
- How awesome is that! :)
No comments:
Post a Comment