Ceylon 1.0发布:又一个“Java语言替代品”?
Ceylon是Gavin King(Hibernate和Seam创始人)的作品,这是一个可运行于Java和JavaScript虚拟机的、高可读的、模块化的、面向对象的静态类型编程语言,其融合了Java、C、Smalltalk以及函数式语言的特性,试图解决Java语言中的一些问题。
Gavin King近日发布了Ceylon 1.0正式版本,这意味着其语言规范、编译器和IDE都到达了生产标准。

Ceylon的语言特性
Ceylon语言的主要特点如下:
详细语言特性:http://ceylon-lang.org/features
Ceylon语言包及工具
此次发布的1.0版本中包括:
发布日志:http://ceylon-lang.org/blog/2013/11/12/ceylon-1/
Ceylon的目标
像其他JVM语言一样,Ceylon也被誉为“Java的替代者”,对此,Gavin King表示:
- void hello() { writeLine( "Hello World." );}
一个简单的函数:
- function distance(Point from, Point to) { return ((from.x-to.x)^2 + (from.y-to.y)^2)^0.5;}
一个简单的类:
- class Counter(Integer initialValue=0) { variable value count = initialValue; shared Integer currentValue { return count; } shared void increment() { count++; } }
官方网站:http://ceylon-lang.org/
Github地址:https://github.com/ceylon