Conclusions
Swift is a powerful programming language that supports both object-oriented and functional programming. Its static type checking, type inferencing, optional types, value types, and closures allow you to write code that is clear, concise, and robust. It catches more bugs at compile-time—such as accesses to nil values—than many other popular languages. Swift’s facilities ease the implementation of constructs such as promises (a.k.a., futures) that greatly simplify asynchronous programming. Its ahead-of-time compilation provides predictable performance and plays nicely with libraries written in other languages such as C. Swift is well suited for real applications.
If you choose to implement your server-side code in Swift, you’ll find the necessary tools to help you. The Swift Package Manager aids in importing other libraries into your project and building your application correctly. The Kitura library helps get you started quickly building web apps by handling incoming web requests and routing them to your application code. Bluemix and the IBM Cloud Tools for Swift provide for easy deployment.
We hope you consider writing the entire stack of your next application in Swift, from client to sensor to server.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access