Channels ▼
RSS

Mobile

Eclipse Xtend 2.4 Reduces "Verbosity" Of Java


The Eclipse Foundation has released Eclipse Xtend 2.4, a new statically typed programming language that translates to readable Java source code. Xtend focuses on bidirectional interoperability with Java and runs on all Java VMs and Android's Dalvik VM.

More Insights

White Papers

More >>

Reports

More >>

Webcasts

More >>

A number of new JVM-based languages have been introduced into the Java ecosystem, such as Clojure, JRuby, Groovy, Scala, and Xtend. Eclipse says that Xtend provides a "better Java language" by adding language features such as lambdas and operator overloading, as well as extension methods that reduce what the foundation labels as the "verbosity" of the Java language.

Xtend works with Java to allow developers to reuse existing Java libraries, frameworks, and tools. The new features in the Xtend 2.4 release include support for writing Android applications so that developers can use Xtend to create apps with less code than via the normal Java language.

NOTE: Xtend works with the existing Android Development Kit, so it has minimal impact on the size of the final application.

Also highlighted are Active Annotations. This new feature in Xtend builds upon Java annotations and makes it possible to participate in the translation process of Xtend source code to Java source code. Code patterns can now be formally implemented and automatically expanded during compilation, which reduces the amount of boilerplate developers have to write.

Xtend 2.4 introduces several new language features, including collection literals, extension variables, and support for declaring enums, interfaces, and regular annotations. There is also improved tool support as the Xtend plugin for the Eclipse IDE has been enhanced to provide "better developer tooling support" (says Eclipse) than other JVM languages.

"Xtend 2.4 is a very significant release for the Xtend project," said Sven Efftinge, project lead of Xtend. "We are particularly proud of the new Active Annotation feature since it solves many of the problems developers are working around with wizards and code generators today. We are also excited about reaching into the Android community to offer a new language for building Android applications."

Eclipse Xtend 2.4 Reduces


Related Reading






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.
 

Video