首页> 外文会议>ACM symposium on Applied Computing >Symmetric encapsulated multi-methods to abstract over application structure
【24h】

Symmetric encapsulated multi-methods to abstract over application structure

机译:对称封装的多方法摘要应用结构

获取原文

摘要

In object systems, classes take the role of modules, and interfaces consist of methods. Because methods are encapsulated in objects, interfaces in object systems do not allow abstracting over where methods are implemented. This implies that any change to the implementation structure may cause a rippling effect. Sometimes this unduly restricts the scope of software evolution, in particular for methods with multiple parameters where there is no clear owner. We propose a simple scheme where symmetric methods may be defined in the classes of any of their parameters. This allows client code to be oblivious of what class contains a method implementation, and therefore immune against it changing. When combined with multiple dynamic dispatch, this scheme allows for modular extensibility (but not modular type-checking) where a method defined in one class is overridden by a method defined in a class that is not its subtype. In this paper, we illustrate the scheme by extending a core calculus of class-based languages with these symmetric encapsulated multi-methods, and prove the result sound.
机译:在对象系统中,类采用模块的角色,并且接口由方法组成。由于方法封装在对象中,因此对象系统中的接口不允许在实现方法的情况下抽象。这意味着对实现结构的任何改变都可能导致纹波效果。有时,这已经过度限制了软件演变的范围,特别是对于没有多个参数的方法,其中没有明确的所有者。我们提出了一种简单的方案,其中可以在任何参数的类别中定义对称方法。这允许客户端代码令人遗憾的是包含方法实现的类,因此免于IT不变。当与多个动态调度组合时,该方案允许模块化可扩展性(但不是模块化类型检查),其中在一个类中定义的方法被非类别中定义的方法覆盖,该方法不是其子类型。在本文中,我们通过使用这些对称封装的多方法扩展基于类语言的核心微积分来说明该方案,并证明了结果声音。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号