首页> 外文期刊>ACM Transactions on Programming Languages and Systems >MultiJava: Design Rationale, Compiler Implementation, and Applications
【24h】

MultiJava: Design Rationale, Compiler Implementation, and Applications

机译:MultiJava:设计原理,编译器实现和应用程序

获取原文
           

摘要

MultiJava is a conservative extension of the Java programming language that adds symmetric multiple dispatch and open classes. Among other benefits, multiple dispatch provides a solution to the binary method problem. Open classes provide a solution to the extensibility problem of object-oriented programming languages, allowing the modular addition of both new types and new operations to an existing type hierarchy. This article illustrates and motivates the design of MultiJava and describes its modular static typechecking and modular compilation strategies. Although MultiJava extends Java, the key ideas of the language design are applicable to other object-oriented languages, such as C# and C++, and even, with some modifications, to functional languages such as ML. This article also discusses the variety of application domains in which MultiJava has been successfully used by others, including pervasive computing, graphical user interfaces, and compilers. MultiJava allows users to express desired programming idioms in a way that is declarative and supports static typechecking, in contrast to the tedious and type-unsafe workarounds required in Java. MultiJava also provides opportunities for new kinds of extensibility that are not easily available in Java.
机译:MultiJava是Java编程语言的保守扩展,它添加了对称的多个调度和开放类。除其他好处外,多重分派为二进制方法问题提供了解决方案。开放类提供了一种解决方案,可解决面向对象编程语言的可扩展性问题,从而允许将新类型和新操作模块化添加到现有类型层次结构中。本文说明并激发了MultiJava的设计,并描述了其模块化静态类型检查和模块化编译策略。尽管MultiJava扩展了Java,但是语言设计的关键思想也适用于其他面向对象的语言,例如C#和C ++,甚至适用于某些功能,例如ML。本文还讨论了MultiJava已被其他人成功使用的各种应用程序域,包括普适计算,图形用户界面和编译器。与Java所需的繁琐且类型不安全的解决方法相比,MultiJava允许用户以声明性的方式表达所需的编程习惯,并支持静态类型检查。 MultiJava还为Java中不容易获得的新型可扩展性提供了机会。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号