官术网_书友最值得收藏!

Chapter 3.  Say Hello

For historic reasons, the first program we usually make when learning a new programming language is a program that simply outputs the text Hello World to the console. Printing to the console is reasonably simple and is, therefore, often a good starting point to ensure that everything is set up correctly. To honor traditions, we will do the same with our very first program written in the Swift programming language:

print("Hello World")

Exciting! To achieve this, the chapter will cover the following topics:

  • Introducing a console application
  • Setting up our first Xcode playground and taking a look at the most important parts of a playground
  • Writing our first Hello World program using Swift and a playground
  • A quick look at how Xcode playground communicates errors and how we can use autocompletion to write code faster and more safely
主站蜘蛛池模板: 桐柏县| 关岭| 荣昌县| 铁岭市| 文成县| 商丘市| 白山市| 木兰县| 杨浦区| 平潭县| 长丰县| 黄骅市| 长阳| 冀州市| 锡林浩特市| 青州市| 钟祥市| 龙井市| 贡山| 瓮安县| 开化县| 米泉市| 北海市| 淮南市| 河曲县| 乐至县| 黑河市| 色达县| 锡林郭勒盟| 洱源县| 新巴尔虎左旗| 贞丰县| 达拉特旗| 同心县| 栖霞市| 大厂| 莆田市| 云梦县| 彭山县| 五寨县| 宜宾县|