2 ms·
> It's a simple language and its syntax is straight forward Wha? It has about 100 reserved words — more than C++, now, I think. Even its own designer said [1
by ken 8y ago
> It's a simple language and its syntax is straight forward
Wha? It has about 100 reserved words — more than C++, now, I think. Even its own designer said [1]:
“You’re unlikely to run into anybody that says that Swift is a simple language. Swift is a complicated language.”
If you consider Swift simple, what language do you consider complex? Of all the languages I've written, none has been as complex as Swift.
[1]: http://atp.fm/205-chris-lattner-interview-transcript http://atp.fm/205-chris-lattner-interview-transcript
- ppeetteerr 8y agoYes, it's simple from a user's perspective. Even the quote in your comment is then followed by Chris talking about how easy it is to learn Swift (e.g. `print("Hello world!")` is a valid program). There are a lot of keywords in Swift, but that is not what makes a language complicated. They are all in English, after all. Symbols and unique concepts are what complicate a language because they are not explicit or unorthodox. For instance, using `:=` or `(setq x (1+ 2))` for assignment instead of `=`.