GitHub 中文社区

Swift翻译 - 关于Swift

2017-05-18  本文已影响0人  我是Johnny

原文-About Swift

关于Swift

Swift is a new programming language for iOS, macOS, watchOS, and tvOS 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 reimagine how software development works.

译文:
Swift 是一种适用于开发iOS,macOS,watchOS 和 tvOS应用程序的全新编程语言,它建立在C和Objective-C之上,并且没有C的兼容性限制。Swift采用了安全的编程方式以及添加了现代化功能使编程更容易、灵活和有趣。Swift以清白的身世,以及成熟且备受关注的Cocoa和Cocoa Touch 框架为支撑,为我们提供了一次重新构思如何进行软件开发工作的机遇。

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以及在市场上出现多年。苹果公司通过改进现有的编译器,调试器和框架结构奠定了Swift的基础。我们通过Automatic Reference Counting(ARC)简化了内存管理。我们的framework stack建立在坚实的Foundation和Cooca基础之上,实现了现代化和彻底标准化。Objective-C本身已经发展到支持blocks、collection literals和modules,这使得框架可以不间断的使用现代化的语言。基于以上原理,我们可以为未来苹果软件开发引入一种新的语言。

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.

译文:
对于Objectvie-C的开发者来说,Swift看起来是非常熟悉的。它具备了Objective-C的参数命名的易读性和强大的动态对象模型。它提供了无缝对接现有Cocoa框架并支持与Objective-C代码混编。基于这些共同点,Swift引入了很多新的特性、统一了跟语言相关的程序和面向对象部分(这地方翻译的好拗口。。。。。)。

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对于新手程序员是友好的。作为一个具备表现力和令人愉悦的脚本语言,它是第一个具备工业化质量的系统编程语言。它支持playgrounds,一个允许程序员调试代码并立即查看结果的新特性,避免了重新编译允许程序的开销。

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从广大苹果工程师文化中融合了最好的现代化语言的思维和智慧。无论是编译器还是语言开发,都进行了性能优化,拒不放弃任何一个。它的设计从"Hello word"扩展到整个系统。所有这些使得Swift对应苹果公司和开发者来说都是一种值得信赖的投注。(选我没错的意思)

Swift is a fantastic way to write iOS, macOS, watchOS, and tvOS 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编写iOS,macOS,watchOS和tvOS应用程序是一种很好的方式,并将持续推进新的功能和特性的发展。我们对Swift充满了信心,已经迫不及待的想看看你用它创造了什么。

上一篇下一篇

猜你喜欢

热点阅读