You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I never really made any Eclipse plugins and such, but could it be possible to use annotations to specify which method should be used as which overload? This way we could both name methods like they should be really named and still use Java-OO.
The text was updated successfully, but these errors were encountered:
I really like this idea of allowing the use of annotations. This means that you don't have to add extra methods with other names to the public API of your classes, which are just aliases for the methods which the user is supposed to call when not using java-oo. Don't know if it is possible or how hard it is, though...
It is possible to implement remapping method names for operators via annotations.
But it is not easy. It should be implemented in all 3 compilers (javac,eclipse,idea) separately because of different api.
I see no major benefit from this.
Another issue is you can't annotate or modify external class for operator overloading. (For example in Kotlin language it is possible via extension functions)
I never really made any Eclipse plugins and such, but could it be possible to use annotations to specify which method should be used as which overload? This way we could both name methods like they should be really named and still use Java-OO.
The text was updated successfully, but these errors were encountered: