+ 1
what is the difference between using the optional and creating normal variable without assigning any value?
2 odpowiedzi
0
normal variable must has a value, but optional can be nil
0
Optional is used when you need to declare a variable but not want to assign that the value at that point.