[Swift 2] Distinguish var and let

Var and Let in Swift, it is easy to look but it is not easy. Because var and let go with mutable and immutable concepts.

Recent trends show that we will limit changing the value of the variable (state change) but instead create a new one when changing and copying when reassigning to ensure the state of the application will not be changed in a way unwanted (especially in multi-threaded processing environments).

Hopefully, through this clip, you will understand mutable and immuable, so that our app will be less bug-free and more secure ?

ITZone via IDE Academy

Share the news now