- 授权协议: 未知
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: http://typeunsafe.github.io/coteline/
软件介绍
Coteline 是一个全新的基于 JVM 的编程语言。Coteline 是 Ceylon 的超集,并保持对 Ceylon 的向后兼容。
比 Ceylon 改进的地方包括:
"
publicas a service", becausesharedis not a good keyword.implements, because it is fancier thansatisfiesand it closes the gap for existing J2EE 1.3 developers.Call an
objectasingleton.Use
constin lieu ofvalue.Write
defas a Hipster-compliant variant offunction.Ink
Unitinstead ofvoidin your fine-crafted Coteline definitions.contractandtraitcarry more meaning thaninterface(and who cares about the actual formal semantics of these?).We think
prayis a better replacement forassert, because this is what you actually do when you write assertions.dynamicblocks are better named asunsafeblocks, because they escape the wonderland of static type checks.Parametric types with
in / outfor contravariance and covariance are hard to manipulate. This is also way too reminiscent of the C# world. Coteline provides salvation withcovarandcontravar.Last but not least, you can also write
foreachloops in Coteline.
示例代码:
"The classic Hello World program"
public Unit hello(String name = "World") {
const str = "Hello, `` name ``!";
def work() => print(str);
work();
pray(1 == 1);
plop.plop();
foreach (i in {1, 2, 3}) {
print(i);
}
}
singleton plop {
public Unit plop() {
print("Oh Plop!");
}
}
"Run the module `better.ceylon.is.coteline`."
public Unit run(){
if (nonempty args=process.arguments) {
foreach (arg in args) {
hello(arg);
}
}
else {
hello();
}
}
C++ Primer Plus
Stephen Prata / 张海龙、袁国忠 / 人民邮电出版社 / 2012-6-19 / 99.00元
C++是在C语言基础上开发的一种集面向对象编程、通用编程和传统的过程化编程于一体的编程语言,是C语言的超集。本书是根据2003年的ISO/ANSI C++标准编写的。通过大量短小精悍的程序详细而全面地阐述了C++的基本概念和技术。全书分为18章和10个附录,分别介绍了C++程序的运行方式、基本数据类型、复合数据类型、循环和关系表达式、分支语句和逻辑操作符、函数重载和函数模板、内存模型和名称空间、类......一起来看看 《C++ Primer Plus》 这本书的介绍吧!
在线进制转换器
各进制数互转换器
HTML 编码/解码
HTML 编码/解码
