<s>
Xtend	B-Language
is	O
a	O
general-purpose	B-Language
high-level	B-Language
programming	I-Language
language	I-Language
for	O
the	O
Java	B-Language
Virtual	I-Language
Machine	I-Language
.	O
</s>
<s>
Syntactically	O
and	O
semantically	O
Xtend	B-Language
has	O
its	O
roots	O
in	O
the	O
Java	B-Language
programming	I-Language
language	I-Language
but	O
focuses	O
on	O
a	O
more	O
concise	O
syntax	O
and	O
some	O
additional	O
functionality	O
such	O
as	O
type	O
inference	O
,	O
extension	O
methods	O
,	O
and	O
operator	O
overloading	O
.	O
</s>
<s>
Being	O
primarily	O
an	O
object-oriented	B-Language
language	I-Language
,	O
it	O
also	O
integrates	O
features	O
known	O
from	O
functional	B-Language
programming	I-Language
,	O
e.g.	O
</s>
<s>
lambda	B-General_Concept
expressions	I-General_Concept
.	O
</s>
<s>
Xtend	B-Language
is	O
statically	O
typed	O
and	O
uses	O
Java	B-Language
's	I-Language
type	O
system	O
without	O
modifications	O
.	O
</s>
<s>
It	O
is	O
compiled	O
to	O
Java	B-Language
code	I-Language
and	O
thereby	O
seamlessly	O
integrates	O
with	O
all	O
existing	O
Java	B-Language
libraries	O
.	O
</s>
<s>
The	O
language	O
Xtend	B-Language
and	O
its	O
IDE	O
is	O
developed	O
as	O
a	O
project	O
at	O
Eclipse.org	B-Application
and	O
participates	O
in	O
the	O
annual	O
Eclipse	B-Application
release	O
train	O
.	O
</s>
<s>
The	O
code	O
is	O
open	O
source	O
under	O
the	O
Eclipse	B-License
Public	I-License
License	I-License
.	O
</s>
<s>
Yet	O
,	O
the	O
language	O
can	O
be	O
compiled	O
and	O
run	O
independently	O
of	O
the	O
Eclipse	B-Application
platform	I-Application
.	O
</s>
<s>
Xtend	B-Language
originated	O
from	O
Xtext	B-Application
,	O
which	O
is	O
the	O
technology	O
used	O
to	O
define	O
the	O
language	O
and	O
the	O
editor	O
.	O
</s>
<s>
Xtend	B-Language
was	O
first	O
released	O
as	O
part	O
of	O
Xtext	B-Application
in	O
the	O
Eclipse	B-Application
release	O
Indigo	O
in	O
June	O
2011	O
.	O
</s>
<s>
Since	O
the	O
Eclipse	B-Application
release	O
Juno	O
(	O
June	O
2012	O
,	O
Xtend	B-Language
version	O
2.3	O
)	O
Xtend	B-Language
has	O
become	O
a	O
standalone	O
project	O
.	O
</s>
<s>
The	O
language	O
Xtend	B-Language
described	O
here	O
should	O
not	O
be	O
confused	O
with	O
the	O
older	O
language	O
with	O
the	O
same	O
name	O
in	O
the	O
Xpand	O
project	O
.	O
</s>
<s>
Initially	O
,	O
Xtend	B-Language
was	O
named	O
Xtend2	O
for	O
better	O
distinction	O
.	O
</s>
<s>
With	O
its	O
template	O
expressions	O
,	O
Xtend	B-Language
is	O
meant	O
as	O
a	O
replacement	O
of	O
the	O
entire	O
Xpand	O
technology	O
.	O
</s>
<s>
Java	B-Language
is	O
one	O
of	O
the	O
most	O
popular	O
programming	O
languages	O
ever	O
with	O
a	O
large	O
ecosystem	O
of	O
libraries	O
and	O
tools	O
.	O
</s>
<s>
Xtend	B-Language
tries	O
to	O
get	O
the	O
best	O
of	O
Java	B-Language
,	O
but	O
reduce	O
syntactic	O
noise	O
and	O
add	O
new	O
features	O
to	O
allow	O
for	O
shorter	O
and	O
better	O
readable	O
code	O
.	O
</s>
<s>
To	O
make	O
it	O
easier	O
to	O
learn	O
for	O
Java	B-Language
developers	O
,	O
Xtend	B-Language
's	O
syntax	O
is	O
close	O
to	O
Java	B-Language
's	I-Language
.	O
</s>
<s>
Xtend	B-Language
maintains	O
maximum	O
compatibility	O
with	O
Java	B-Language
by	O
compiling	O
to	O
Java	B-Language
code	I-Language
and	O
using	O
Java	B-Language
's	I-Language
type	O
system	O
.	O
</s>
<s>
Java	B-Language
code	I-Language
and	O
Xtend	B-Language
code	O
can	O
be	O
mixed	O
inside	O
the	O
same	O
project	O
at	O
will	O
.	O
</s>
<s>
Using	O
a	O
combination	O
of	O
lambda	B-General_Concept
expressions	I-General_Concept
and	O
extension	O
methods	O
,	O
the	O
language	O
can	O
be	O
extended	O
by	O
means	O
of	O
libraries	O
,	O
i.e.	O
</s>
<s>
The	O
Eclipse-based	O
Xtend	B-Language
IDE	O
offers	O
syntax	O
highlighting	O
,	O
code	O
completion	O
,	O
refactoring	O
,	O
navigation	O
and	O
debugging	O
.	O
</s>
<s>
It	O
integrates	O
with	O
Eclipse	B-Application
's	O
Java	B-Language
Development	O
Toolkit	O
.	O
</s>
<s>
Xtend	B-Language
resembles	O
Java	B-Language
in	O
many	O
regards	O
.	O
</s>
<s>
Here	O
is	O
an	O
example	O
Xtend	B-Language
file	O
:	O
</s>
<s>
Xtend	B-Language
provides	O
type	O
inference	O
,	O
i.e.	O
</s>
<s>
Instead	O
of	O
using	O
the	O
imperative	B-Application
for-loop	O
,	O
one	O
could	O
use	O
a	O
functional	B-Language
style	O
lambda	B-Language
expression	I-Language
in	O
square	O
brackets	O
and	O
call	O
the	O
higher-order	B-Language
function	I-Language
forEach	O
in	O
extension	O
syntax	O
on	O
the	O
list	O
:	O
</s>
<s>
Note	O
that	O
the	O
lambda	B-General_Concept
's	O
parameter	O
,	O
if	O
not	O
specified	O
,	O
is	O
called	O
it	O
,	O
which	O
can	O
be	O
skipped	O
like	O
this	O
in	O
Java	B-Language
.	O
</s>
<s>
Lambda	B-General_Concept
expressions	I-General_Concept
are	O
also	O
automatically	O
coerced	O
to	O
single	O
method	O
interfaces	O
,	O
such	O
that	O
they	O
can	O
be	O
passed	O
e.g.	O
</s>
<s>
as	O
a	O
java.lang.Comparable	O
.	O
</s>
<s>
Xtend	B-Language
offers	O
intelligent	O
white-space	O
management	O
-	O
the	O
above	O
text	O
will	O
not	O
be	O
indented	O
in	O
the	O
output	O
-	O
thus	O
meeting	O
the	O
requirements	O
of	O
code	O
generation	O
.	O
</s>
