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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Java 23

50 点作者 ludovicianul8 个月前

7 条评论

stonemetal128 个月前
If the wikipedia page is to be believed a pretty underwhelming release. The only thing not a preview or change of defaults is markdown doc comments.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Java_version_history#Java_23" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Java_version_history#Java_23</a>
评论 #41568391 未加载
评论 #41570136 未加载
jauntywundrkind8 个月前
Not new to this release, but digging the scoped variables, alike async-local-storage in js. It&#x27;s interesting that computing languages seems to be evolving a whole new storage subsystem for languages, that promises&#x2F;subprocesses&#x2F;async now has some free form associative stores to go with. <a href="https:&#x2F;&#x2F;openjdk.org&#x2F;jeps&#x2F;481" rel="nofollow">https:&#x2F;&#x2F;openjdk.org&#x2F;jeps&#x2F;481</a><p>I also really like relaxing constraints on when super() has to be called in constructors. It feels like language designers have been super super scared to let users do anything maybe possibly untoward, and have massively restricted constructors as a keep-you-all-safe-from-yourselves move. But it hampered hackability of inheritance, and makes a bunch of initialization tasks hard or frustrating to do, requires participation from your super. I&#x27;d love to see this shift come to other languages, of trying to do some relaxation of what can come before super(). <a href="https:&#x2F;&#x2F;openjdk.org&#x2F;jeps&#x2F;482" rel="nofollow">https:&#x2F;&#x2F;openjdk.org&#x2F;jeps&#x2F;482</a>
PaulHoule8 个月前
I love<p><a href="https:&#x2F;&#x2F;openjdk.org&#x2F;jeps&#x2F;482" rel="nofollow">https:&#x2F;&#x2F;openjdk.org&#x2F;jeps&#x2F;482</a><p>as being forced to call super() first thing in constructors was an annoyance to me when I was coding Java <i>before</i> JDK 1.0.
评论 #41569067 未加载
throw0101a8 个月前
Just as a reminder, the LTS releases are 8, 11, 17, 21 (released September 2023), and forthcoming 25 (September 2025):<p>* <a href="https:&#x2F;&#x2F;www.oracle.com&#x2F;java&#x2F;technologies&#x2F;java-se-support-roadmap.html" rel="nofollow">https:&#x2F;&#x2F;www.oracle.com&#x2F;java&#x2F;technologies&#x2F;java-se-support-roa...</a><p>* <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Java_version_history" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Java_version_history</a>
CharlieDigital8 个月前
Interesting seeing some similar ideas percolating through different languages and platforms.<p>Some of the proposals&#x2F;in-progress features look very similar to features rolled out in C# over the last 3-4 years.
评论 #41568619 未加载
exabrial8 个月前
MarkDown comments! Thank you!
评论 #41568517 未加载
paulddraper8 个月前
RIP static void main(String[] args)<p>You&#x27;ll be missed by Java jokes everywhere
评论 #41568222 未加载