| ▲ | troupo 7 hours ago | ||||||||||||||||
1. You don't have to use it all, but someone will. And there are over 200 keywords in the language: https://x.com/jacobtechtavern/status/1841251621004538183 2. On top of that many of the features in the language exist not because they were carefully designed, but because they were rushed: https://news.ycombinator.com/item?id=47529006 | |||||||||||||||||
| ▲ | uasi 5 hours ago | parent | next [-] | ||||||||||||||||
That number is unfairly exaggerated. The list includes ~40 internal keywords used only by language developers, plus dozens of tokens that would be called preprocessor directives, attributes, or annotations in other languages (e.g. `canImport` as in `#if canImport(...) #endif`; `available` and `deprecated` as in `@available(*, deprecated) func`). | |||||||||||||||||
| ▲ | dematz 6 hours ago | parent | prev [-] | ||||||||||||||||
are there actually 217 keywords? Just wondering what the difference between that file and https://docs.swift.org/swift-book/documentation/the-swift-pr... (a mere 102 keywords) | |||||||||||||||||
| |||||||||||||||||