- iOS 9 Game Development Essentials
- Chuck Gaffney
- 112字
- 2021-08-05 16:36:55
No more semicolons
Those of us who have been programming for some time might note that the usually all-important semicolon (;
) is missing. This isn't a mistake; in Swift, we don't have to use a semicolon to mark the end of an expression. We can if we'd like, and some of us might still do it as a force of habit, but Swift has omitted that common concern.
Note
The use of the semicolon to mark the end of an expression stems from the earliest days of programming when code was written in simple word processors and needed a special character to represent when the code's expression ends and the next begins.
推薦閱讀
- TypeScript Blueprints
- Python程序設(shè)計(jì)(第3版)
- BeagleBone Media Center
- Learning Elixir
- INSTANT Sencha Touch
- oreilly精品圖書(shū):軟件開(kāi)發(fā)者路線圖叢書(shū)(共8冊(cè))
- JavaScript從入門(mén)到精通(第3版)
- Learning DHTMLX Suite UI
- C++面向?qū)ο蟪绦蛟O(shè)計(jì)習(xí)題解答與上機(jī)指導(dǎo)(第三版)
- Java編程的邏輯
- ASP.NET求職寶典
- 愛(ài)上C語(yǔ)言:C KISS
- Python Deep Learning
- Building Microservices with Go
- Cloud Development andDeployment with CloudBees