- 授权协议: 未知
- 开发语言: 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();
}
}
细节决定交互设计的成败
张亮 / 2009-3 / 49.00元
《细节决定交互设计的成败》是一本非常实用的有关软件界面的交互设计和可用性设计方面知识的书籍,通过采用一问一答的形式,你将会有针对性地学习到一些能够很快应用在自己软件开发工作中的细节知识和诀窍。例如,如何减轻用户的等待感,如何预防和减少用户的使用错误等。另外,你会发现阅读《细节决定交互设计的成败》时会非常轻松和愉悦;这是由于《细节决定交互设计的成败》写作上的两个特点:第一,采用较多日常生活中的例子来......一起来看看 《细节决定交互设计的成败》 这本书的介绍吧!
