What is a identity operators === ,!== | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

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

22nd Dec 2016, 2:54 PM
MAVULURU VISWAJITH REDDY
MAVULURU VISWAJITH REDDY - avatar
2 Respostas
+ 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