Home > Ruby > New features for Java 7 . . . smells like Ruby

New features for Java 7 . . . smells like Ruby

November 25th, 2009 john Leave a comment Go to comments

Here’s a blog post summarizing new features for Java 7:

http://code.joejag.com/2009/new-language-features-in-java-7/

The new features are:

  • Language support for collections (like Ruby . . . but apparently still no Hash literal — probably way too late to wedge that in)
  • Automatic resource management (like Ruby’s IO objects that yield a reference to a block . . . but looks far less general)
  • New type inference operator
  • Underscores in numeric literals (1_000_000) (like Ruby)
  • Strings in switch statements (like Ruby . . . but only for Strings, so no ‘case equals’ operator)
  • binary literals (like Ruby)
  • Simplified varargs
Categories: Ruby Tags:
  1. No comments yet.
  1. No trackbacks yet.