Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
What is a identity operators === ,!==
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.
0
can i get some examples