Skip to content

Instantly share code, notes, and snippets.

@MithraTalluri
Created September 18, 2019 06:39
Show Gist options
  • Save MithraTalluri/12adadf262a0f2802fe610036585be9b to your computer and use it in GitHub Desktop.
Save MithraTalluri/12adadf262a0f2802fe610036585be9b to your computer and use it in GitHub Desktop.
val john1 = Person("John")
val john2 = Person("John")
john1 == john2 // true (structural equality)
john1 === john2 // false (referential equality)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment