# \#keywords

**URL:** https://forums.swift.org/tag/keywords/92.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [Where can I get the full list of Swift keywords?](https://forums.swift.org/t/where-can-i-get-the-full-list-of-swift-keywords/71488)

<div class="topic-metadata">

**Author:** [@dima\_kozhinov](https://forums.swift.org/u/dima_kozhinov)\
**Replies:** 28\
**Last updated:** [November 25, 2024, 10:17am UTC](https://forums.swift.org/t/where-can-i-get-the-full-list-of-swift-keywords/71488 "2024-11-25T10:17:45Z")

</div>

I have noticed that Swift 5.10 contains keywords borrowing and consuming. However these are missing in Documentation . Where can I get the full list of actual keywords? Am I missing more keywords than the two mentioned? …

---

## [Global Implementation of \`some\`](https://forums.swift.org/t/global-implementation-of-some/71489)

<div class="topic-metadata">

**Author:** [@MinerMinerMain](https://forums.swift.org/u/MinerMinerMain)\
**Replies:** 7\
**Last updated:** [April 30, 2024, 5:31pm UTC](https://forums.swift.org/t/global-implementation-of-some/71489 "2024-04-30T17:31:18Z")

</div>

you can receive an error about some not being implemented in this circumstance(at least in 5.9) where any also doesn’t work as anticipated for example public typealias code = (\_ context:Dictionary\<ContextID,Any\>,\_ Targe…

---

## [Is there an official documentation/description for the keyword "for" in parameter list?](https://forums.swift.org/t/is-there-an-official-documentation-description-for-the-keyword-for-in-parameter-list/68172)

<div class="topic-metadata">

**Author:** [@litbe](https://forums.swift.org/u/litbe)\
**Replies:** 2\
**Last updated:** [October 31, 2023, 7:41pm UTC](https://forums.swift.org/t/is-there-an-official-documentation-description-for-the-keyword-for-in-parameter-list/68172 "2023-10-31T19:41:22Z")

</div>

I see the keyword for used in a func's parameter list such as func prepare(for name: String). In googling it, I didn't find any result from https://docs.swift.org or Swift - Resources - Apple Developer. I've found vario…

---

## [How and where does the true/false reserved keywords define in Swift?](https://forums.swift.org/t/how-and-where-does-the-true-false-reserved-keywords-define-in-swift/66837)

<div class="topic-metadata">

**Author:** [@HuangRunHua](https://forums.swift.org/u/HuangRunHua)\
**Replies:** 3\
**Last updated:** [August 19, 2023, 2:49pm UTC](https://forums.swift.org/t/how-and-where-does-the-true-false-reserved-keywords-define-in-swift/66837 "2023-08-19T14:49:47Z")

</div>

I am recently learning the source code of the Bool type in Swift. I have defined a Coin structure (shows below) imitating the source code. Similar to Bool, there are two values of true and false. I want to assign two val…

---

## [Get list of keywords in swift in macros](https://forums.swift.org/t/get-list-of-keywords-in-swift-in-macros/65563)

<div class="topic-metadata">

**Author:** [@soumyamahunt](https://forums.swift.org/u/soumyamahunt)\
**Replies:** 4\
**Last updated:** [August 11, 2023, 5:58pm UTC](https://forums.swift.org/t/get-list-of-keywords-in-swift-in-macros/65563 "2023-08-11T17:58:56Z")

</div>

With the introduction of macros in Swift 5.9, it is possible for macros to generate declarations from user provided string data, i.e. generating Codable model from JSON. This has potential to create declarations that mig…

---

## [Why not replace the var keyword with the let mut keyword, let and var have different parts of speech](https://forums.swift.org/t/why-not-replace-the-var-keyword-with-the-let-mut-keyword-let-and-var-have-different-parts-of-speech/66503)

<div class="topic-metadata">

**Author:** [@silentdoer](https://forums.swift.org/u/silentdoer)\
**Replies:** 6\
**Last updated:** [August 1, 2023, 9:29pm UTC](https://forums.swift.org/t/why-not-replace-the-var-keyword-with-the-let-mut-keyword-let-and-var-have-different-parts-of-speech/66503 "2023-08-01T21:29:17Z")

</div>

Why not replace the var keyword with the let mut keyword, let and var have different parts of speech

---

## [A new keyword that stands in for a tedious initializer of arbitrary length](https://forums.swift.org/t/a-new-keyword-that-stands-in-for-a-tedious-initializer-of-arbitrary-length/60173)

<div class="topic-metadata">

**Author:** [@jeremyabannister](https://forums.swift.org/u/jeremyabannister)\
**Replies:** 31\
**Last updated:** [October 8, 2022, 12:08am UTC](https://forums.swift.org/t/a-new-keyword-that-stands-in-for-a-tedious-initializer-of-arbitrary-length/60173 "2022-10-08T00:08:33Z")

</div>

The Problem Let's say I'm writing a module that will be imported somewhere else, and a struct that I define in my module needs to be initializable outside of my module. I am forced to write out the memberwise initializer…

---

## [Straightforward Code Repetition](https://forums.swift.org/t/straightforward-code-repetition/13828)

<div class="topic-metadata">

**Author:** [@Wildchild9](https://forums.swift.org/u/Wildchild9)\
**Replies:** 40\
**Last updated:** [July 18, 2020, 6:28am UTC](https://forums.swift.org/t/straightforward-code-repetition/13828 "2020-07-18T06:28:09Z")

</div>

In Swift, we often need to make our code repeat. Swift has made this easy to do while iterating through a range with a for loop. But you don't always need to iterate through a range when repeating code, take the followin…

---

## [Documentation or explanation for keyword 'in' as used in function arguments](https://forums.swift.org/t/documentation-or-explanation-for-keyword-in-as-used-in-function-arguments/34517)

<div class="topic-metadata">

**Author:** [@ddownn](https://forums.swift.org/u/ddownn)\
**Replies:** 2\
**Last updated:** [March 13, 2020, 1:13pm UTC](https://forums.swift.org/t/documentation-or-explanation-for-keyword-in-as-used-in-function-arguments/34517 "2020-03-13T13:13:23Z")

</div>

I am learning Swift and trying to find information about what the keyword 'in' does when used in a function argument as in these examples: func fillEllipse(in rect: CGRect) func drawSomething(in rect: CGRect, in context…

---

## [Bringing Control Flow Keywords to the Ternary Operator](https://forums.swift.org/t/bringing-control-flow-keywords-to-the-ternary-operator/13878)

<div class="topic-metadata">

**Author:** [@Wildchild9](https://forums.swift.org/u/Wildchild9)\
**Replies:** 7\
**Last updated:** [June 21, 2018, 1:10pm UTC](https://forums.swift.org/t/bringing-control-flow-keywords-to-the-ternary-operator/13878 "2018-06-21T13:10:00Z")

</div>

In Swift, the ternary operator easily allows us to clean and concisely write conditionally code. Although currently, the inability to use certain statements in conjunction with the ternary operator is limiting. I am pro…
