Skip to content

Commit d9370ca

Browse files
committed
✨ AboutSwift.md
Change-Id: I8817f489b0b85e682e7ee8ff52e33848da9637b6
1 parent 5e309b1 commit d9370ca

File tree

1 file changed

+26
-60
lines changed

1 file changed

+26
-60
lines changed
Lines changed: 26 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,34 @@
1-
<!--
2-
要翻译的文件:https://github.com/SwiftGGTeam/the-swift-programming-language-in-chinese/blob/swift-6-beta-translation/swift-6-beta.docc/GuidedTour/AboutSwift.md
3-
Swift 文档源文件地址:https://docs.swift.org/swift-book/documentation/the-swift-programming-language/aboutswift
4-
翻译估计用时:⭐️
5-
-->
1+
# 关于 Swift
62

7-
# About Swift
3+
理解该语言的高级目标。
84

9-
Understand the high-level goals of the language.
5+
Swift 是编写手机、平板电脑、台式机、服务器或任何运行代码的设备的绝佳方式。
6+
它是一种安全且快速的编程语言,结合了现代语言思想的精华,并汲取了来自多元化的开源社区的智慧。
107

11-
Swift is a fantastic way to write software
12-
for phones, tablets, desktops, servers,
13-
or anything else that runs code.
14-
It's a safe and fast programming language
15-
that combines the best in modern language thinking
16-
with wisdom from a diverse open source community.
8+
Swift 对于初学者来说很友好,同时也没有牺牲经验丰富的程序员所需要的强大和灵活性。
9+
它是一种工业级的编程语言,但又有着脚本语言般的表达力和可玩性。
10+
编译器经过精心优化,可以提供卓越的性能表现。同时语言本身也经过精心设计,以便于开发使用。
11+
两者都没有做出任何妥协,鱼与熊掌兼得。
1712

18-
Swift is friendly to new programmers,
19-
without sacrificing the power and flexibility
20-
that experienced programmers need.
21-
It's an industrial-quality programming language
22-
that's as expressive and enjoyable as a scripting language.
23-
The compiler is optimized for performance
24-
and the language is optimized for development,
25-
without compromising on either.
13+
Swift 通过采用现代编程模式来避免大量常见编程错误:
2614

27-
Swift defines away large classes of common programming errors
28-
by adopting modern programming patterns:
15+
- 变量始终在使用前被初始化。
16+
- 数组索引会进行越界检查。
17+
- 整数运算会进行溢出检查。
18+
- 可选类型确保 `nil` 值能够得到明确处理。
19+
- 内存被自动管理。
20+
- 错误处理允许从意外失败中进行有控制的恢复。
2921

30-
- Variables are always initialized before use.
31-
- Array indices are checked for out-of-bounds errors.
32-
- Integers are checked for overflow.
33-
- Optionals ensure that `nil` values are handled explicitly.
34-
- Memory is managed automatically.
35-
- Error handling allows controlled recovery from unexpected failures.
22+
Swift 代码经过编译和优化,可以充分发挥现代硬件的性能。
23+
语法和标准库的设计都遵循一个指导原则,
24+
即编写代码的最直观方式也应该是性能最高效的方式。
25+
安全性和速度的结合使得 Swift 成为从 “Hello,world!” 到整个操作系统的绝佳选择。
3626

37-
Swift code is compiled and optimized to get the most out of modern hardware.
38-
The syntax and standard library have been designed
39-
based on the guiding principle that
40-
the obvious way to write your code should also perform the best.
41-
Its combination of safety and speed make Swift an excellent choice for
42-
everything from "Hello, world!" to an entire operating system.
27+
Swift 融合了对于来自其他流行语言的开发者来说很熟悉的现代且轻量的语法,
28+
同时还拥有类型推断和模式匹配等强大功能,
29+
使得复杂的概念能够以简洁明了的方式表达出来。
30+
因此,代码更易于阅读、编写和维护。
4331

44-
Swift combines a modern, lightweight syntax
45-
that's familiar for developers coming from other popular languages
46-
with powerful features like type inference and pattern matching,
47-
allowing complex ideas to be expressed in a clear and concise manner.
48-
As a result, code is easier to read, write, and maintain.
49-
50-
Swift continues to evolve with thoughtful new features and powerful capabilities.
51-
The goals for Swift are ambitious.
52-
We can’t wait to see what you create with it.
53-
54-
> Beta Software:
55-
>
56-
> This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
57-
>
58-
> Learn more about using [Apple's beta software](https://developer.apple.com/support/beta-software/).
59-
60-
<!--
61-
This source file is part of the Swift.org open source project
62-
63-
Copyright (c) 2014 - 2022 Apple Inc. and the Swift project authors
64-
Licensed under Apache License v2.0 with Runtime Library Exception
65-
66-
See https://swift.org/LICENSE.txt for license information
67-
See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
68-
-->
32+
Swift 仍在不断发展,不断推出经过深思熟虑的新功能和强大的特性。
33+
Swift 的目标非常远大。
34+
我们非常期待看到您使用它创造出的作品。

0 commit comments

Comments
 (0)