mcpiroman
12/14/2021, 10:36 AMclass Foo
class Bar
Why I can't do `Foo() == Bar()`but can Foo().equals(Bar())?Joffrey
12/14/2021, 11:18 AM== is compiled to equals(), but that doesn't prevent the compiler from being "smarter". From what I understood, the operator form is actually more restrictive than the method call form by designJoffrey
12/14/2021, 11:24 AM