+ 8

Whar is the point of using the identity operator in Swift?

I tried to compare values of different types using identity operator and my code didn't run. Swift doesn't allow different types to be compared anyway. So what is the benefit of ===? https://code.sololearn.com/c94wHpzXYH5w/?ref=app

10th May 2021, 11:10 AM
Валентина
Валентина - avatar
2 odpowiedzi
+ 7
Also == dosn't work
10th May 2021, 11:10 AM
Валентина
Валентина - avatar
- 1
bby ki kabay trny
12th Sep 2021, 12:00 PM
BD SPC
BD SPC - avatar