0
What is a identity operators === ,!==
2 Réponses
+ 1
Swift uses references in the memory that can't be compared with normal equals.
“Equal to” means that two instances are considered “equal” or “equivalent” in value, for some appropriate meaning of “equal”, as defined by the type’s designer.
Use these operators to check whether two constants or variables refer to the same single instance.
“Identical to” means that two constants or variables of class type refer to exactly the same class instance.
0
can i get some examples