Skip to content

Align method names with Kotlin #38

Description

@almson

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions