Consider the following statement
var aString: String! = "this is a test string"
Now as we see that aString
always needs to hold a value "" or some text. Then what is the use of making it a implicit unwrapped optional. Why can't it be a simple String like :
var aString: String = "this is a test string"
Also I would like to understand the purpose of implicit unwrapped optionals existence other then in case of IBOutlets
.
In other words what is the benefit of making a var
implicit unwrapped optional when we know it always have some non nil value, why should not we declare it as a normal var
.