3 ms·
Very, very little of the swift surface language is not part of the standard library. "Basic" types like `Int` and operations like `==` are defined in the standa
by stephencanon 4y ago
Very, very little of the swift surface language is not part of the standard library. "Basic" types like `Int` and operations like `==` are defined in the standard library, rather than built-in.
- Kukumber 4y agoThey are in the runtime, not in the standard library std lib means you'll have to import a module import Move move(a)
- favorited 4y agoYou are incorrect. Swift's standard library is named "Swift" – and it is automatically imported. You can refer to something in the standard library implicitly `let x = Array<Int>()` or by specifying the standard library's module `let x = Swift.Array<Swift.Int>()`.
- stephencanon 4y agoNo. The swift stdlib is the API that is available by default without any import statements (consisting of the Swift, _Concurrency, and _StringProcessing modules). The runtime is a separate library that programs do not explicitly interact with; calls into the runtime are implicitly generated by the compiler when necessary to perform tasks like allocation or retain/release.
- Kukumber 4y agoThanks for the information