TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Java 7 is adding dynamics

51 pointsby alrex021about 15 years ago

3 comments

ldhabout 15 years ago
While I'm really glad to see Java (the language) slowly evolving in a positive direction, and it might bring me some joy at work if/when we switch to 7, I can't imagine starting new projects in Java anymore if I had my way. Once you've been exposed to the much nicer languages thriving on the JVM now, it's hard to get excited about Java anymore.<p>I mean, I can't see this sort of thing as being very enjoyable to write all the time.<p><pre><code> JComboBox combo = new JComboBox(); MethodHandle handle = MethodHandles.lookup().findVirtual(JComboBox.class, "setModel", MethodType.make(void.class, ComboBoxModel.class)); handle.invoke(combo, new CustomComboModel());</code></pre>
评论 #1252725 未加载
评论 #1253253 未加载
drunkpotatoabout 15 years ago
Any word on tail-call optimization? Clojure's recur macro is pretty clever but true compiler-level support for recursion would be nice.
评论 #1253021 未加载
评论 #1253040 未加载
评论 #1254148 未加载
unwindabout 15 years ago
<p><pre><code> "There are three supported invocations modes : invokestatic, invokespecial, invokeinterface or invokevirtual." </code></pre> So ... Are there four, or is one very much like another?
评论 #1252938 未加载
评论 #1253583 未加载
评论 #1252691 未加载