小关注了一下JSR-334

2 Comments

从Joe Dacy的blog里看来的:Project Coin: JSR 334 Approved

特性看起来还不错,当然都是些小改动,所以这个JSR的主题也很谦卑:Small Enhancements to the JavaTM Programming Language,估计要到JDK 7了(这是当然…)

  • Strings in switch
  • Binary integral literals and underscores in numeric literals
  • Multi-catch and more precise rethrow
  • Improved Type Inference for Generic Instance Creation (diamond)
  • try-with-resources statement
  • Simplified Varargs Method Invocation

唉,有些特性其他语言都有了。Java最近的发展是比较迟缓呐…

是以为记,凑数…

2 Comments (+add yours?)

  1. sammychen
    Dec 21, 2010 @ 14:33:59

    try-with-resources 不错,虽然没有C++的方便。

    Reply

    • IUSR
      Dec 23, 2010 @ 21:15:57

      哎,不再敢碰C++了,总觉得会很容易做出bug来。想当初上学的时候还想着做一辈子C++了…

      Reply

Leave a Reply