IngramChen 積分 0

怎麼 preview 法?難不成之後再改一次語法嗎?

這是文章的子討論串,你可以回到上層查看所有討論和文章
caterpillar 積分 2 編輯於

JEP 12: Preview Language and VM Features1

看來是會變動,要開 --enable-preview 才能用的語法。

koji 積分 0 編輯於

個人也對 preview 這件事還沒搞懂 然後原本的 string multiline literal 也從 preview 先拔掉了XD

Switch expressions is a preview language feature. This essentially means that even though it is complete, it has a possibility of not being confirmed as a permanent feature in a future Java release. This happens for a reason. Java 12 and IntelliJ IDEA1