First of all, I believe that my question is different from these questions about "what is optional in fast." Because I ask why I can do this, and not what it is.
I am new to speed. When I learn this fabulous language tonight, I had a problem when I never saw this mark - " ? " In a programming language. And I was looking for him for a while. I know what an optional binding is now.
But now I have a new question. When I want to declare a variable that is not optional. I can write this syntax:
var friend: String
But I can not write:
var friend: String = nil
To declare a nil variable, I can only use the optional parameter:
var friend: String? = nil
. friend, nil, ? . , , nil .
, , , . , , .
!