TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

JDK 20 in feature freeze mode

3 点作者 ludovicianul超过 2 年前

1 comment

PaulHoule超过 2 年前
I like how pattern matching for is being refined and how now you can do destructuring in a for loop body.<p><pre><code> for (Pair(String s, String t): arg) { System.out.println(s+&quot;, &quot;+t); } </code></pre> Even so it is a bit of a drag that you have to enable preview features to use pattern and also that it changes from version to version, but it is getting better all the time. I am using JDK 17 at work without preview features and coding on my own account w&#x2F; 19 and preview enabled. It will be nice if most of the stuff in preview now gets finalized in 21 and then they get started on value types and the more radical stuff after that.
评论 #33922520 未加载