Tags archives: iBooks

  • // Use two forward slashes for a single-line comment /* Use a forward slash followed by an asterisk to start a multi-line comment. To end the multi-line comment, use an asterisk followed by a forward slash. */ /* Did you know it's also possible to nest comments in Swift? /* You can nest comments by starting a multi-line comment, then starting another. */ Finally, close the last (two) comments */ These examples demonstrate how to write different types of comments in Swift. As you might be aware, Swift is a new OS X and iOS programming language announced this week at WWDC. After hearing the announcement, I immediately wanted to check it out because I enjoy coding iOS apps, even though I’m only a beginner (experienced programmers write a large majority of the code in our company’s[...]