Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

var one = [1, 2, 3]

var two = [1, 2, 3]

one == two

That's because Swift checks for safety first (variable declaration).



Can you explain what you mean by `checks for safety first (variable declaration)`?

This issue only seems to affect arrays. Strings, numbers, and dictionaries are fine.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: