[中文翻译]<The Swift Programming Language> - About Swift 关于Swift

本译作由译者自行翻译,仅供交流学习之用,严禁作为商业用途。未经译者允许,严禁转载。
The translation is for study and knowledge exchange only. It is strictly prohibited for commercial use. Do not repost or reprint anywhere without the translators' permission.

Github: https://github.com/PeipeiShang/PeipeiShang-The-Swift-Programming-Language-CN-Translation-Project

About Swift

IMPORTANT

This is a preliminary document for an API or technology in development. Apple is supplying this information to help you plan for the adoption of the technologies and programming interfaces described herein for use on Apple-branded products. This information is subject to change, and software implemented according to this document should be tested with final operating system software and final documentation. Newer versions of this document may be provided with future seeds of the API or technology.

Swift is a new programming language for iOS and OS X apps that builds on the best of C and Objective-C, without the constraints of C compatibility. Swift adopts safe programming patterns and adds modern features to make programming easier, more flexible, and more fun. Swift‘s clean slate, backed by the mature and much-loved Cocoa and Cocoa Touch frameworks, is an opportunity to re-imagine how software development works.

Swift has been years in the making. Apple laid the foundation for Swift by advancing our existing compiler, debugger, and framework infrastructure. We simplified memory management with Automatic Reference Counting (ARC). Our framework stack, built on the solid base of Foundation and Cocoa, has been modernized and standardized throughout. Objective-C itself has evolved to support blocks, collection literals, and modules, enabling framework adoption of modern language technologies without disruption. Thanks to this groundwork, we can now introduce a new language for the future of Apple software development.

Swift feels familiar to Objective-C developers. It adopts the readability of Objective-C‘s named parameters and the power of Objective-C’s dynamic object model. It provides seamless access to existing Cocoa frameworks and mix-and-match interoperability with Objective-C code. Building from this common ground, Swift introduces many new features and unifies the procedural and object-oriented portions of the language.

Swift is friendly to new programmers. It is the first industrial-quality systems programming language that is as expressive and enjoyable as a scripting language. It supports playgrounds, an innovative feature that allows programmers to experiment with Swift code and see the results immediately, without the overhead of building and running an app.

Swift combines the best in modern language thinking with wisdom from the wider Apple engineering culture. The compiler is optimized for performance, and the language is optimized for development, without compromising on either. It‘s designed to scale from “hello, world” to an entire operating system. All this makes Swift a sound future investment for developers and for Apple.

Swift is a fantastic way to write iOS and OS X apps, and will continue to evolve with new features and capabilities. Our goals for Swift are ambitious. We can’t wait to see what you create with it.


关于Swift

重要提示

本文档为一篇介绍新增API或技术的初步文档。由苹果公司提供,旨在帮助开发者针对文档内所介绍的技术及编程接口制定迁移计划,并使用于苹果品牌产品之上。文档内提供的所有信息均有可能被更改,所有根据本文档开发实现的软件,均须在最终操作系统软件及最终版文档下进行测试。文档的更新版本可能会与后续API或技术的更新版本同时发布。

Swift是一门新的基于iOS及OS X操作系统的编程语言,它由C语言及Objective-C语言发展而来,并且不受C语言兼容性的制约。Swift继承了安全编程模式的优势,同时增加了全新的实用特性,使得编程更加简便、灵活、富有趣味。架设于技术成熟、广受欢迎的Cocoa和Cocoa Touch框架的Swift如同一张崭新的白板,为重新绘制软件开发蓝图提供了绝妙的机会。

Swift的开发已经耗时数年。苹果公司凭借对既有编译器、调试器及框架基础设施的改进和完善,为Swift的产生奠定了坚实的基础。我们将内存管理简化为自动引用计数(Automatic Reference Counting)。我们优化改进了基于Foundation框架和Cocoa框架产生的栈框架,并且使之标准化。而Objective-C则参与到了对代码块、集合字面量和模块的支持上,使得现代语言技术在框架的迁移上得以延续。得益于这种种宝贵的基础,我们才有幸在此向大家介绍为苹果软件开发的未来而设计的这门新语言。

熟悉Objective-C的开发者对Swift并不会感到陌生。它继承了Objective-C在命名参数上的可读性,以及在动态对象模型上的强大功能。它与既有的Cocoa框架无缝衔接,同时又能与Objective-C代码的混合互通。基于以上共同点,Swift引入了许多全新的功能特性,并且整合了语言中面向过程及面向对象的各个部分。

Swift对新手开发者同样友好。它是第一门既具有脚本语言的丰富表现力和趣味性,同时又达到工业生产质量水平的系统编程语言。它支持一种被称为“playground”的革命性新特性,使得开发者在未对源代码进行构建或者运行一个应用程序的前提下,能够直接看见其运行结果。

Swift实现了现代计算机语言的优势与苹果丰富工业文化的完美融合。出于性能角度,编译器得到了优化,而处于开发角度,语言本身也得到了优化,两者并未为实现另一方而作出任何妥协和让步。它小至打印出一句“Hello, World”,大至构建整个操作系统,无所不能。这一切让Swift成为了开发者以及苹果对未来的一份稳妥的投资。

Swift是编写iOS和OS X应用程序的绝妙手段,并且在未来还会源源不断地引入全新的特性和功能。我们对Swift的未来充满了野心,已经等不及想看看你能借助Swift做出什么样的作品了!



本译作由译者自行翻译,仅供交流学习之用,严禁作为商业用途。未经译者允许,严禁转载。
The translation is for study and knowledge exchange only. It is strictly prohibited for commercial use. Do not repost or reprint anywhere without the translators' permission.

Github: https://github.com/PeipeiShang/PeipeiShang-The-Swift-Programming-Language-CN-Translation-Project
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值