NOOP:一个名型OOP的域理论模型
NOOP: A Domain-Theoretic Model of Nominally-Typed OOP
摘要:
大多数工业级面向对象(OO)软件都是使用名义类型的OO程序设计语言编写的。现存的领域理论模型的面向对象程序开发分析面向对象类型系统错过了,但是,这些主流的面向对象语言的一个重要特征:名词性。本文介绍了NOOP的建设作为第一个领域理论模型的OOP,其中包括完整的类/类型名称信息中找到名义类型的OOP。在NOOP的对象中包含名义信息,并断言静态类型OO程序设计语言中的类型继承是一个固有的名义概念,可以很容易地证明类型继承和子类型在这些语言中是完全确定的。这一结论与这些OO语言的开发人员和语言设计者的直觉完全一致,并且与“继承不是子类型”的信念相反,后者来自于假设非名义型(即,OOP的结构模型。为了促进NOOP的构建,本文简要介绍了与结构类型相比,名义类型对主流OO开发人员和OO语言设计人员的好处。在介绍了NOOP之后,本文进一步简要地将NOOP与最广为人知的OOP领域理论模型进行了比较。利用NOOP的发展,本文提出的比较提供了清晰,简要和精确的技术和数学帐户之间的关系名义和结构OO型系统。因此,NOOP为分析和发展名义类型的OO程序设计语言提供了更坚实的语义基础。
英文摘要:
The majority of industrial-strength object-oriented (OO) software is written using nominally-typed OO programming languages. Extant domain-theoretic models of OOP developed to analyze OO type systems miss, however, a crucial feature of these mainstream OO languages: nominality. This paper presents the construction of NOOP as the first domain-theoretic model of OOP that includes full class/type names information found in nominally-typed OOP. Inclusion of nominal information in objects of NOOP and asserting that type inheritance in statically-typed OO programming languages is an inherently nominal notion allow readily proving that type inheritance and subtyping are completely identified in these languages. This conclusion is in full agreement with intuitions of developers and language designers of these OO languages, and contrary to the belief that "inheritance is not subtyping," which came from assuming non-nominal (a.k.a., structural) models of OOP. To motivate the construction of NOOP, this paper briefly presents the benefits of nominal-typing to mainstream OO developers and OO language designers, as compared to structural-typing. After presenting NOOP, the paper further briefly compares NOOP to the most widely known domain-theoretic models of OOP. Leveraging the development of NOOP, the comparisons presented in this paper provide clear, brief and precise technical and mathematical accounts for the relation between nominal and structural OO type systems. NOOP, thus, provides a firmer semantic foundation for analyzing and progressing nominally-typed OO programming languages.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。