【24h】

Chai: Traits for Java-Like Languages

机译:柴:Java语言的特质

获取原文
获取原文并翻译 | 示例

摘要

Traits support the factoring out of common behaviour, and its integration into classes in a manner that coexists smoothly with inheritance-based structuring mechanisms. We designed the language Chai, which incorporates statically typed traits into a simple Java-inspired base language, and we discuss three versions of the language: Chai_1, where traits are only a mechanism for the creation of classes; Chai_2 where traits are a mechanism for the creation of classes, and can also introduce types, and Chai_3 where traits play a role at runtime, and can can be applied to objects, and change the objects' behaviour. We give formal models for these languages, outline the proof of soundness, and our prototype implementation.
机译:特质支持将常见行为分解为因素,并以与基于继承的结构化机制顺利共存的方式将其集成到类中。我们设计了Chai语言,该语言将静态类型的特征合并到简单的受Java启发的基本语言中,并讨论了该语言的三个版本:Chai_1,其中特征只是创建类的一种机制; Chai_2(特征是创建类的机制,并且可以引入类型); Chai_3,特征是在运行时起作用的特征,可以应用于对象并更改对象的行为。我们为这些语言提供了正式的模型,概述了正确性的证明以及我们的原型实现。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号