3 ms·
Personally, I like the idea of using immutability. In Swift, I declare as much as possible with let instead of var let pi = 3.141592 let label = UILabe
by melling 8y ago
Personally, I like the idea of using immutability. In Swift, I declare as much as possible with let instead of var
let pi = 3.141592
let label = UILabel()
let names = [“Java”, “Perl”, “Swift”]
These won’t accidentally be changed and they’ll never be null.
The editor/tools can now make additional checks before I try to run the code.
A small step towards correctness and readability.