|
|
|
|
|
by masklinn
3376 days ago
|
|
You're stating "you can't differentiate between method implementations based on return type alone" which is nonsensical both on its face (people have no issue doing it) and technically (since several languages do exactly that). And thus "Java needs to be able to decide which overloaded method implementation to use at compile time" is not an issue relevant to return-type overloading. There was no issue with Java implementing return-type overloading, the creators of Java decided not to do it for non-technical reasons. |
|
Anyway, I think we understand each other now, and I shall endeavor to be clearer in the future.