使用 eclipse 编写 xtend

来源:互联网 发布:js.10000网上营业厅 编辑:程序博客网 时间:2024/05/21 07:10

Xtend是一种静态类型编程语言,集成并运行在Java虚拟机中,可以看成java 的一种方言。

Extension methods - enhance closed types with new functionality
Lambda Expressions - concise syntax for anonymous function literals
ActiveAnnotations - annotation processing on steroids
Operator overloading - make your libraries even more expressive
Powerful switch expressions - type based switching with implicit casts
Multiple dispatch - a.k.a. polymorphic method invocation
Template expressions - with intelligent white space handling
No statements - everything is an expression
Properties - shorthands for accessing and defining getters and setter
Type inference - you rarely need to write down type signatures anymore
Full support for Java generics - including all conformance and conversion rules
Translates to Java not bytecode - understand what is going on and use your code for platforms such as Android or GWT

原创粉丝点击