0

What is a identity operators === ,!==

22nd Dec 2016, 2:54 PM
MAVULURU VISWAJITH REDDY
MAVULURU VISWAJITH REDDY - avatar
2 odpowiedzi
+ 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.
22nd Dec 2016, 3:38 PM
Felipe Cruz
Felipe Cruz - avatar
0
can i get some examples
22nd Dec 2016, 4:16 PM
MAVULURU VISWAJITH REDDY
MAVULURU VISWAJITH REDDY - avatar