-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overload === for equals() #44
Comments
just doing that is going to hurt if var1 is null, but it should also evaluate to true if both are null, so
|
If I may, I tried java-oo once looking for operator overloading... but when I discovere Kotlin, it was another different world... I just accept that java is what it is.. and I spent so much time in workarounds for its limitations that I regret I didn't try earlier to look around for alternatives.. Give a try to Kotlin (100% java compatible), you won't regret my 2 cents |
|
Could something like |
Can you overload a new operator === for equals() ?
I mean:
var1.equals(var2)
->var1 === var2
That world be great if that can be done!
The text was updated successfully, but these errors were encountered: