that = this is actually generally used for referencing a this in another scope.
that = this
this
It creates really annoying code to read. But it's useful, here's an example off of stack overflow. stackoverflow.com/questions/163611...
An object comparison methods like equals(...), I use if (this.equals(that)) and it seems quite readable.
Self.equals(other) doesn't sound as good to my ears
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
that = this
is actually generally used for referencing athis
in another scope.It creates really annoying code to read. But it's useful, here's an example off of stack overflow.
stackoverflow.com/questions/163611...
An object comparison methods like equals(...), I use if (this.equals(that)) and it seems quite readable.
Self.equals(other) doesn't sound as good to my ears