From d8bee0a55445e48c394738cc6efda35a5ff46422 Mon Sep 17 00:00:00 2001
From: Dave Verwer
Date: Mon, 3 Jul 2023 19:39:44 +0100
Subject: [PATCH 1/9] =?UTF-8?q?New=20=E2=80=9CSwift=20is=E2=80=A6=E2=80=9D?=
=?UTF-8?q?=20copy.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
about/index.md | 13 +++++------
assets/stylesheets/pages/_landing.scss | 32 +++++++-------------------
index.md | 27 +---------------------
3 files changed, 15 insertions(+), 57 deletions(-)
diff --git a/about/index.md b/about/index.md
index b777203fa..266d96003 100644
--- a/about/index.md
+++ b/about/index.md
@@ -3,15 +3,14 @@ layout: page
title: About Swift
---
-Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns.
+Swift is a **general-purpose** programming language that is **quick** to write, **fast** to run, **modern**, and **safe**. It’s **approachable** for newcomers and **powerful** in expert hands.
-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:
+* Swift is **general-purpose** and **modern**. Suitable for everything from systems programming, through mobile and desktop apps, to cloud services.
+* Swift is **safe**. Undefined behavior is the enemy of safety, and it’s best to catch mistakes should be caught before software is in production. Swift makes the obvious path the safest.
+* Swift is **fast** to run and **quick** to write. Predictable and consistent performance that is as quick as C-based languages, with all the advantages of developer-friendly language design.
+* Swift is **approachable** and **powerful**. From “Hello, World!” in one line of code to large-scale apps with hundreds of thousands of lines. Swift scales with your needs.
-**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.
-
-**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.
-
-**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.
+## Tools
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.
diff --git a/assets/stylesheets/pages/_landing.scss b/assets/stylesheets/pages/_landing.scss
index eb6d4394c..d40bf37b9 100644
--- a/assets/stylesheets/pages/_landing.scss
+++ b/assets/stylesheets/pages/_landing.scss
@@ -1,27 +1,11 @@
-.why-swift-list {
- list-style: none;
- padding-left: 0;
- display: grid;
- gap: 1rem;
-
- li {
- border: 1px solid var(--color-fill-tertiary);
- padding: 1rem;
- border-radius: 4px;
- display: flex;
- flex-direction: column;
-
- h3 {
- line-height: 1.4;
- font-size: 1.4rem;
- padding-top: 0;
- }
-
- p {
- flex-grow: 1;
- color: var(--color-secondary-label);
- margin-bottom: 0;
- }
+.preamble {
+ font-weight: normal;
+ font-size: 28px;
+ line-height: 30px;
+ margin-bottom: 30px;
+
+ strong {
+ font-weight: 600;
}
}
diff --git a/index.md b/index.md
index 501211c71..c682cd5ab 100644
--- a/index.md
+++ b/index.md
@@ -4,9 +4,7 @@ title: Welcome to Swift.org
atom: true
---
-# Welcome to Swift.org
-
-Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns.
+Swift is a general-purpose programming language that is quick to write, fast to run, modern, and safe. It’s approachable for newcomers and powerful in expert hands.
{% for snippet in site.data.featured_snippets %}
```swift
@@ -46,29 +44,6 @@ Swift is a general-purpose programming language built using a modern approach to
-## Why Swift?
-
-
- -
-
Safe
-
- Swift prioritizes safety and clarity, ensuring that code behaves in a safe manner while also promoting clear and concise programming practices.
-
-
- -
-
Fast
-
- Swift aims to replace C-based languages (C, C++, and Objective-C) and match their performance, while maintaining consistency and predictability.
-
-
- -
-
Expressive
-
- Swift builds upon decades of advancements in computer science, providing a modern syntax that is a joy to use.
-
-
-
-
- [Learn more about Swift](/about)
From e0528c5ab16dd87dfce6d6239ce2f0208bec8cca Mon Sep 17 00:00:00 2001
From: Dave Verwer
Date: Tue, 4 Jul 2023 09:12:05 +0100
Subject: [PATCH 2/9] Tweaked preamble wording.
---
index.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.md b/index.md
index c682cd5ab..1824d6b36 100644
--- a/index.md
+++ b/index.md
@@ -4,7 +4,7 @@ title: Welcome to Swift.org
atom: true
---
-Swift is a general-purpose programming language that is quick to write, fast to run, modern, and safe. It’s approachable for newcomers and powerful in expert hands.
+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
.
{% for snippet in site.data.featured_snippets %}
```swift
From e345c54d9d8aec38962574713b4df00b65a0958c Mon Sep 17 00:00:00 2001
From: Dave Verwer
Date: Tue, 4 Jul 2023 09:15:33 +0100
Subject: [PATCH 3/9] Removed bolding from the About page.
---
about/index.md | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/about/index.md b/about/index.md
index 266d96003..ade3c13ba 100644
--- a/about/index.md
+++ b/about/index.md
@@ -3,12 +3,12 @@ layout: page
title: About Swift
---
-Swift is a **general-purpose** programming language that is **quick** to write, **fast** to run, **modern**, and **safe**. It’s **approachable** for newcomers and **powerful** in expert hands.
+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.
-* Swift is **general-purpose** and **modern**. Suitable for everything from systems programming, through mobile and desktop apps, to cloud services.
-* Swift is **safe**. Undefined behavior is the enemy of safety, and it’s best to catch mistakes should be caught before software is in production. Swift makes the obvious path the safest.
-* Swift is **fast** to run and **quick** to write. Predictable and consistent performance that is as quick as C-based languages, with all the advantages of developer-friendly language design.
-* Swift is **approachable** and **powerful**. From “Hello, World!” in one line of code to large-scale apps with hundreds of thousands of lines. Swift scales with your needs.
+* Swift is general-purpose and modern. Suitable for everything from systems programming, through mobile and desktop apps, to cloud services.
+* Swift is safe. Undefined behavior is the enemy of safety, and it’s best to catch mistakes should be caught before software is in production. Swift makes the obvious path the safest.
+* Swift is fast to run and quick to write. Predictable and consistent performance that is as quick as C-based languages, with all the advantages of developer-friendly language design.
+* Swift is approachable and powerful. From “Hello, World!” in one line of code to large-scale apps with hundreds of thousands of lines. Swift scales with your needs.
## Tools
From a3967b422a22205e9c00313c7b6c1f9949e20ce7 Mon Sep 17 00:00:00 2001
From: Dave Verwer
Date: Tue, 4 Jul 2023 09:20:43 +0100
Subject: [PATCH 4/9] Typo.
---
index.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.md b/index.md
index 1824d6b36..01195f88d 100644
--- a/index.md
+++ b/index.md
@@ -4,7 +4,7 @@ title: Welcome to Swift.org
atom: true
---
-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
.
+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.
{% for snippet in site.data.featured_snippets %}
```swift
From d800759e275ece976ceb4dc55cff040c482da3a0 Mon Sep 17 00:00:00 2001
From: Dave Verwer
Date: Tue, 4 Jul 2023 09:21:08 +0100
Subject: [PATCH 5/9] Whitespace.
---
index.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/index.md b/index.md
index 01195f88d..a36dbbfe6 100644
--- a/index.md
+++ b/index.md
@@ -35,7 +35,7 @@ atom: true
-
+
Read the docs
@@ -57,7 +57,7 @@ atom: true
Swift is a powerful and intuitive programming language optimized when running on iOS, macOS, and other Apple platforms.
Apple offers a wide variety of frameworks and APIs that make applications developed for these platforms unique and fun.
-
+
Learn more
From ffe5bc60eb739804b19b9f26f159f7be26db13d9 Mon Sep 17 00:00:00 2001
From: Dave Verwer
Date: Tue, 4 Jul 2023 12:14:37 +0100
Subject: [PATCH 6/9] Fixed up sentence in the About page.
---
about/index.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/about/index.md b/about/index.md
index ade3c13ba..9a7ceaa83 100644
--- a/about/index.md
+++ b/about/index.md
@@ -6,7 +6,7 @@ title: About Swift
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.
* Swift is general-purpose and modern. Suitable for everything from systems programming, through mobile and desktop apps, to cloud services.
-* Swift is safe. Undefined behavior is the enemy of safety, and it’s best to catch mistakes should be caught before software is in production. Swift makes the obvious path the safest.
+* Swift is safe. Undefined behavior is the enemy of safety, and it’s best to catch mistakes before software is in production. Swift makes the obvious path the safest.
* Swift is fast to run and quick to write. Predictable and consistent performance that is as quick as C-based languages, with all the advantages of developer-friendly language design.
* Swift is approachable and powerful. From “Hello, World!” in one line of code to large-scale apps with hundreds of thousands of lines. Swift scales with your needs.
From e747b096f6ea2a63d021c448fad4e7d020f6f274 Mon Sep 17 00:00:00 2001
From: Dave Verwer
Date: Tue, 4 Jul 2023 12:16:36 +0100
Subject: [PATCH 7/9] More minor wording tweaks.
---
about/index.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/about/index.md b/about/index.md
index 9a7ceaa83..cf3760699 100644
--- a/about/index.md
+++ b/about/index.md
@@ -6,9 +6,9 @@ title: About Swift
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.
* Swift is general-purpose and modern. Suitable for everything from systems programming, through mobile and desktop apps, to cloud services.
-* Swift is safe. Undefined behavior is the enemy of safety, and it’s best to catch mistakes before software is in production. Swift makes the obvious path the safest.
-* Swift is fast to run and quick to write. Predictable and consistent performance that is as quick as C-based languages, with all the advantages of developer-friendly language design.
-* Swift is approachable and powerful. From “Hello, World!” in one line of code to large-scale apps with hundreds of thousands of lines. Swift scales with your needs.
+* 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.
+* Swift is fast to run and quick to write. Predictable and consistent performance that's as quick as C-based languages, with all the advantages of developer-friendly language design.
+* 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.
## Tools
From c5a3ef71a91b6eb7d46b3b2c10954fac6c5118c4 Mon Sep 17 00:00:00 2001
From: Dave Verwer
Date: Tue, 4 Jul 2023 12:39:02 +0100
Subject: [PATCH 8/9] Removed extra space.
---
about/index.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/about/index.md b/about/index.md
index cf3760699..642a761fb 100644
--- a/about/index.md
+++ b/about/index.md
@@ -6,7 +6,7 @@ title: About Swift
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.
* Swift is general-purpose and modern. Suitable for everything from systems programming, through mobile and desktop apps, to cloud services.
-* 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.
+* 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.
* Swift is fast to run and quick to write. Predictable and consistent performance that's as quick as C-based languages, with all the advantages of developer-friendly language design.
* 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.
From e11a4774cffb8f77cba826408edf91483c0d4025 Mon Sep 17 00:00:00 2001
From: Dave Verwer
Date: Wed, 5 Jul 2023 15:19:42 +0100
Subject: [PATCH 9/9] Suggestion from Reda on the quick and fast line.
---
about/index.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/about/index.md b/about/index.md
index 642a761fb..e8895b7dc 100644
--- a/about/index.md
+++ b/about/index.md
@@ -7,7 +7,7 @@ Swift is a general-purpose programming language that's approachable for newcomer
* Swift is general-purpose and modern. Suitable for everything from systems programming, through mobile and desktop apps, to cloud services.
* 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.
-* Swift is fast to run and quick to write. Predictable and consistent performance that's as quick as C-based languages, with all the advantages of developer-friendly language design.
+* 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.
* 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.
## Tools