Difference between revisions of "Swift"
From Coder Merlin
(Added bullet points for what swift is (Needs more edits)) |
m (Added access control under bullet points) |
||
Line 4: | Line 4: | ||
* Protocol-oriented programming (Basically OOP) | * Protocol-oriented programming (Basically OOP) | ||
* Basic value types | * Basic value types | ||
* Access control | |||
1. open | |||
2. public | |||
3. internal | |||
4. fileprivate | |||
5. private | |||
* String support | * String support | ||
1. Being able to concatenate strings similar to python | 1. Being able to concatenate strings similar to python |
Revision as of 10:38, 5 December 2022
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder
What is Swift?[edit]
Swift is a programming language made for development on apple devices. Swift was created by Chris Lattner and started development in 2010. For programming on apple devices, swift is a great alternative to Objective C (Which most programmers hate).
- Protocol-oriented programming (Basically 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 but runs much slower than rust and C. This is pretty good for an object-oriented programming language.
Why swift?[edit]
- Swift is fast
- Swift can be used on IOS devices
- Swift is object-oriented
- Swift is modern
- Swift is common