About underscores in type arguments / partial type arguments

Tesla Zhang ice1000kotlin at foxmail.com
Sat Jan 21 02:23:39 UTC 2023


Hi all,

Is there any discussion related to partially specified type arguments (which are left for inference)? I just saw that Kotlin 1.7 added support for that. It would be nice if Java can have that too: https://kotlinlang.org/docs/whatsnew17.html#underscore-operator-for-type-arguments


The demonstration of the feature in the above document is also applicable to Java.


Best regards,
Tesla
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20230120/c20231c2/attachment.htm>


More information about the amber-dev mailing list