Difference between revisions of "Swift"
From Coder Merlin
m (Added access control under bullet points) |
m (→External Links) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
See full list of [https://www.codermerlin.com/wiki/index.php/Programming_languages languages]. | |||
== What is Swift? == | == What is Swift? == | ||
Swift is a programming language made for development on | Swift is a programming language made for development on Apple devices. Chris Lattner created Swift; he started developing it in 2010. For programming on Apple devices, Swift is a great alternative to Objective C (which most programmers hate). | ||
* Protocol-oriented programming ( | * Protocol-oriented programming (basically object-oriented programming (OOP)) | ||
* Basic value types | * Basic value types | ||
* Access control | * Access control | ||
Line 11: | Line 13: | ||
5. private | 5. private | ||
* String support | * String support | ||
1. Being able to concatenate strings similar to | 1. Being able to concatenate strings similar to Python | ||
== Performance == | == Performance == | ||
Swift runs significantly faster than Python, PHP, LUA( | Swift runs significantly faster than Python, PHP, LUA (nobody uses this), and Ruby; however, it runs much slower than rust and C. This is pretty good for an OOP language. | ||
== Why | == Why Swift? == | ||
* Swift is fast | * Swift is fast | ||
* Swift can be used on IOS devices | * Swift can be used on IOS devices | ||
Line 23: | Line 25: | ||
* Swift is common | * Swift is common | ||
== | == References == | ||
[https://github.com/frol/completely-unscientific-benchmarks Speed tests] | [https://github.com/frol/completely-unscientific-benchmarks Speed tests] | ||
Latest revision as of 15:13, 18 August 2023
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder
See full list of languages.
What is Swift?[edit]
Swift is a programming language made for development on Apple devices. Chris Lattner created Swift; he started developing it in 2010. For programming on Apple devices, Swift is a great alternative to Objective C (which most programmers hate).
- Protocol-oriented programming (basically object-oriented programming (OOP))
- Basic value types
- Access control
1. open 2. public 3. internal 4. fileprivate 5. private
- String support
1. Being able to concatenate strings similar to Python
Performance[edit]
Swift runs significantly faster than Python, PHP, LUA (nobody uses this), and Ruby; however, it runs much slower than rust and C. This is pretty good for an OOP language.
Why Swift?[edit]
- Swift is fast
- Swift can be used on IOS devices
- Swift is object-oriented
- Swift is modern
- Swift is common