首页> 外文会议>European Conference on Object-Oriented Programming >Attaching Second-Order Types to Methods in an Object-Oriented Language
【24h】

Attaching Second-Order Types to Methods in an Object-Oriented Language

机译:将二阶类型附加到面向对象语言的方法

获取原文

摘要

This paper proposes an extension of the notion of method as it is currently used in most object-oriented languages. We define polymethods as methods that we-can attach directly to types, as opposed to classes and that we can describe with a second-order type. Two benefits result from this extension; first, the expressive power of the language is improved with better modeling abilities. Next, second-order types yield a more powerful (precise) type inference, which extends the range of static type checking in a truly extensible object-oriented language. We first show that extensible object-oriented languages present many difficulties for static type-checking and that second-order types are necessary to get stronger type-checking. We illustrate how to combine polymethods through type inheritance and propose a technique based on abstract interpretation to derive a second-order type for new polymethods.
机译:本文提出了延伸了方法的概念,因为它目前用于大多数面向对象的语言。我们将Polyethod定义为方法,即我们可以直接连接到类型,而不是类,我们可以用二阶类型描述。这个延伸产生了两个好处;首先,提高了语言的表现力,具有更好的建模能力。接下来,二阶类型产生更强大的(精确)类型推断,其以真正可扩展的面向对象语言扩展了静态类型检查的范围。我们首先表明,可扩展的面向对象的语言为静态类型检查呈现许多困难,并且需要使用二阶类型来获得更强大的类型检查。我们说明了如何通过类型继承结合多种方法,并提出基于抽象解释的技术来推导出新的聚体的二阶类型。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号