Skip to content

Feature request: Kotlin optimization #339

@MukjepScarlet

Description

@MukjepScarlet
  1. Some APIs will conflict in Kotlin.
    Example:
Long2ObjectMap.computeIfAbsent(long, V) <-> Long2ObjectMap.computeIfAbsent(java.lang.Long, V)
  1. Kotlin built-in extensions will make many classes degenerate to normal type.
    Example:

Object2LongMap.forEach will produce entry with type java.lang.Object and java.lang.Long. And Map.put(K, V), etc.

Entry<K,V>.component1 / component2

One of the resolutions: PairExtensions.kt
I hope these stuffs could be library built-in ones, so Kotlin will give priority to existing member methods rather than extension functions

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