Skip to content
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

Align method names with Kotlin #38

Open
almson opened this issue Apr 6, 2016 · 0 comments
Open

Align method names with Kotlin #38

almson opened this issue Apr 6, 2016 · 0 comments

Comments

@almson
Copy link

almson commented Apr 6, 2016

Could we please change the operator-to-method mapping to match that exposed by Kotlin? I think it's very important to have consistency here, because there'll be libraries designed for Kotlin that will use these method names and which won't be compatible with java-oo. Perhaps java-oo needs to be forked for this.

Kotlin's conventions: http://kotlinlang.org/docs/reference/operator-overloading.html

Unfortunately, Kotlin doesn't use "reverse" methods. It uses "extension" methods, which are static methods in utility classes. It's not possible to predict where Kotlin might put them, so I don't know if they can be supported. See http://kotlinlang.org/docs/reference/extensions.html and https://stackoverflow.com/questions/28294509/accessing-kotlin-extension-functions-from-java/36452456#36452456 I would keep supporting the Rev convention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant