3
Records Come to Java (blogs.oracle.com)
IngramChen 積分 0

整個 sealed class/pattern match/destruction...等等,也不知道要幾年…

koji 積分 1

沒關係反正我們也還可以寫很多年~

smallufo 積分 0
That is, the toString() method (as well as equals() and hashCode()) is implemented using an invokedynamic-based mechanism. This is similar to how string concatenation has also been migrated to use invokedynamic in recent Java versions.

這是唯一吸引人的地方,也是目前 kotlin 做不到之處。這算 Oracle 的後發者優勢吧。

IngramChen 積分 0

啊?到時候 kotlin target byte code 設 14 以後不就有了嗎