Skip to content

Commit 3df3923

Browse files
authored
New “Swift is…” and About page copy (#336)
* New “Swift is…” copy. * Tweaked preamble wording. * Removed bolding from the About page. * Typo. * Whitespace. * Fixed up sentence in the About page. * More minor wording tweaks. * Removed extra space. * Suggestion from Reda on the quick and fast line.
1 parent 56b7810 commit 3df3923

File tree

3 files changed

+17
-59
lines changed

3 files changed

+17
-59
lines changed

about/index.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ layout: page
33
title: About Swift
44
---
55

6-
Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns.
6+
Swift is a general-purpose programming language that's approachable for newcomers and powerful in expert hands. It is quick to write, fast to run, modern, and safe.
77

8-
The goal of the Swift project is to create the best available language for uses ranging from systems programming, to mobile and desktop apps, scaling up to cloud services. Most importantly, Swift is designed to make writing and maintaining *correct* programs easier for the developer. To achieve this goal, we believe that the most obvious way to write Swift code must also be:
8+
* Swift is general-purpose and modern. Suitable for everything from systems programming, through mobile and desktop apps, to cloud services.
9+
* Swift is safe. Undefined behavior is the enemy of safety, and it’s best to catch mistakes before software goes into production. Swift makes the obvious path the safest.
10+
* Swift is fast to run and quick to write. Swift is fast to run and quick to write. It comes with predictable and consistent performance that is on-par with C-based languages without sacrificing developer friendliness.
11+
* Swift is approachable and powerful. From a single-line “Hello, World!” to large-scale apps with hundreds of thousands of lines. Swift scales with your needs.
912

10-
**Safe.** The most obvious way to write code should also behave in a safe manner. Undefined behavior is the enemy of safety, and developer mistakes should be caught before software is in production. Opting for safety sometimes means Swift will feel strict, but we believe that clarity saves time in the long run.
11-
12-
**Fast.** Swift is intended as a replacement for C-based languages (C, C++, and Objective-C). As such, Swift must be comparable to those languages in performance for most tasks. Performance must also be predictable and consistent, not just fast in short bursts that require clean-up later. There are lots of languages with novel features — being fast is rare.
13-
14-
**Expressive.** Swift benefits from decades of advancement in computer science to offer syntax that is a joy to use, with modern features developers expect. But Swift is never done. We will monitor language advancements and embrace what works, continually evolving to make Swift even better.
13+
## Tools
1514

1615
Tools are a critical part of the Swift ecosystem. We strive to integrate well within a developer's toolset, to build quickly, to present excellent diagnostics, and to enable interactive development experiences. Tools can make programming so much more powerful, like Swift-based playgrounds do in Xcode, or a web-based REPL can when working with Linux server-side code.
1716

assets/stylesheets/pages/_landing.scss

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,11 @@
1-
.why-swift-list {
2-
list-style: none;
3-
padding-left: 0;
4-
display: grid;
5-
gap: 1rem;
6-
7-
li {
8-
border: 1px solid var(--color-fill-tertiary);
9-
padding: 1rem;
10-
border-radius: 4px;
11-
display: flex;
12-
flex-direction: column;
13-
14-
h3 {
15-
line-height: 1.4;
16-
font-size: 1.4rem;
17-
padding-top: 0;
18-
}
19-
20-
p {
21-
flex-grow: 1;
22-
color: var(--color-secondary-label);
23-
margin-bottom: 0;
24-
}
1+
.preamble {
2+
font-weight: normal;
3+
font-size: 28px;
4+
line-height: 30px;
5+
margin-bottom: 30px;
6+
7+
strong {
8+
font-weight: 600;
259
}
2610
}
2711

index.md

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ title: Welcome to Swift.org
44
atom: true
55
---
66

7-
# Welcome to Swift.org
8-
9-
Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns.
7+
<h1 class="preamble">Swift is a <strong>general-purpose</strong> programming language that's <strong>approachable</strong> for newcomers and <strong>powerful</strong> in expert hands. It is <strong>quick</strong> to write, <strong>fast</strong> to run, <strong>modern</strong>, and <strong>safe</strong>.</h1>
108

119
{% for snippet in site.data.featured_snippets %}
1210
```swift
@@ -37,7 +35,7 @@ Swift is a general-purpose programming language built using a modern approach to
3735
</a>
3836
</li>
3937

40-
<li>
38+
<li>
4139
<a href="/documentation">
4240
<img src="/assets/images/landing-page/book.svg" />
4341
Read the docs
@@ -46,29 +44,6 @@ Swift is a general-purpose programming language built using a modern approach to
4644
</ul>
4745
</div>
4846

49-
## Why Swift?
50-
51-
<ul class="why-swift-list">
52-
<li>
53-
<h3>Safe</h3>
54-
<p>
55-
Swift prioritizes safety and clarity, ensuring that code behaves in a safe manner while also promoting clear and concise programming practices.
56-
</p>
57-
</li>
58-
<li>
59-
<h3>Fast</h3>
60-
<p>
61-
Swift aims to replace C-based languages (C, C++, and Objective-C) and match their performance, while maintaining consistency and predictability.
62-
</p>
63-
</li>
64-
<li>
65-
<h3>Expressive</h3>
66-
<p>
67-
Swift builds upon decades of advancements in computer science, providing a modern syntax that is a joy to use.
68-
</p>
69-
</li>
70-
</ul>
71-
7247
<div class="links links-list-nostyle" markdown="1">
7348
- [Learn more about Swift](/about)
7449
</div>
@@ -82,7 +57,7 @@ Swift is a general-purpose programming language built using a modern approach to
8257
Swift is a powerful and intuitive programming language optimized when running on iOS, macOS, and other Apple platforms.
8358
<br><br>
8459
Apple offers a wide variety of frameworks and APIs that make applications developed for these platforms unique and fun.
85-
</p>
60+
</p>
8661
<a href="https://developer.apple.com/swift/resources/" class="cta-secondary">Learn more</a>
8762
</li>
8863
<li>

0 commit comments

Comments
 (0)