|
14 | 14 | }
|
15 | 15 |
|
16 | 16 | - title: Expressive
|
17 |
| - subtitle: Concise code. Powerful results. |
| 17 | + subtitle: Concise code, powerful results. |
18 | 18 | text: Swift empowers you to write advanced code in a concise, readable syntax that even a beginner can understand. Swift supports object-oriented, functional, and generic programming patterns that experienced developers are familiar with. Its progressive disclosure allows you to pick up the language quickly, taking advantage of power-user features as you need them.
|
19 | 19 | code: |-
|
20 | 20 | import ArgumentParser
|
|
39 | 39 |
|
40 | 40 | - title: Safe
|
41 | 41 | subtitle: Protect memory safety.
|
42 |
| - text: Swift prioritizes safety and eliminates entire classes of bugs and vulnerabilities by its design. Memory safety and data race safety are core features of the language, making them straightforward to integrate into your codebase. Safety is required at compile time, before your applications are ever run. |
| 42 | + text: Swift prioritizes safety and eliminates entire classes of bugs and vulnerabilities by its design. Memory and data race safety are core features of the language, making them straightforward to integrate into your codebase. Safety is required at compile time, before your applications are ever run. |
43 | 43 | code: |-
|
44 | 44 | let transform = Affine2DTransformBuilder()
|
45 | 45 | .translate([10.0, 20.0].span)
|
|
54 | 54 | let uMagnitude = vec_mag(u.span)
|
55 | 55 |
|
56 | 56 | - title: Interoperable
|
57 |
| - subtitle: Adopt in existing code incrementally. |
58 |
| - text: Swift provides unmatched interoperability with its combination of natively understanding C and C++ types without the need for foreign function interfaces, and by providing bridging for bi-directional access. Swift’s interoperability features allow you to incrementally adopt the language into existing codebases without requiring a full code rewrite. |
| 57 | + subtitle: Adopt Swift in existing code incrementally. |
| 58 | + text: Swift provides unmatched interoperability, with its combination of natively understanding C and C++ types, without the need for foreign function interfaces, and providing bridging for bi-directional access. Swift’s interoperability features allow you to incrementally insert the language into existing codebases without requiring a full code rewrite. |
59 | 59 | code: |-
|
60 | 60 | import CxxStdlib
|
61 | 61 |
|
|
71 | 71 |
|
72 | 72 | - title: Adaptable
|
73 | 73 | subtitle: From microcontrollers to servers.
|
74 |
| - text: "The only language that can span from embedded and kernel, to server and apps. Swift excels no matter where it’s used: from constrained environments like firmware where every byte counts, to cloud services handling billions of requests a day." |
| 74 | + text: "The only language that can span from embedded and kernel to server and apps. Swift excels no matter where it’s used, from constrained environments like firmware, where every byte counts, to cloud services handling billions of requests a day." |
75 | 75 | code: |-
|
76 | 76 | // Configure UART by direct register manipulation
|
77 | 77 | // using Swift MMIO. Enables RX and TX, and sets
|
|
0 commit comments