is there a discussion anywhere about using name-ma...
# language-proposals
g
is there a discussion anywhere about using name-mangling as a tool in the kotlin compiler? Does the compiler-community at large have any thoughts on the subject? Is it generally frowned upon? I want to write:
Copy code
Type<Double>.toList(): List<Double> = TODO()
Type<Int>.toList(): List<Int> = TODO()
but I cant because they both have the same JVM signature
public static List<Int> toList(Type $reciever)
but since they are statically dispatched, they're not on a
vtable
, so why not butcher their names a little? generate two functions
List<Int> toList$Double(Type $reciever)
and
List<Int> toList$Int(Type $reciever)
Is it just to maintain a nice presentation under the reflection API?