arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1309.2348cs.PL
收藏

OOP中的名词分型与结构分型

An Overview of Nominal-Typing versus Structural-Typing in OOP

Moez A. AbdelGawad

摘要:

NOOP是名义类型OOP的一个数学模型,它证明了主流名义类型OO程序设计语言中继承和子类型的识别以及这种识别的有效性。本报告概述了OOP中与构建OOP数学模型(如NOOP)相关的主要概念。本报告的重点是定义主流名义类型OO语言的名义性,名义类型和名义子类型,并将这三个概念与结构类型OO语言中的对应概念进行对比,即,结构性、结构类型化和结构子类型化。另外一个附录使用一些简单的代码示例演示了这些概念和其他相关概念,以及它们之间的差异。其他出版物中提供了OOP中名义类型化和结构类型化之间详细的、更具技术性的比较。

英文摘要:

NOOP is a mathematical model of nominally-typed OOP that proves the identification of inheritance and subtyping in mainstream nominally-typed OO programming languages and the validity of this identification. This report gives an overview of the main notions in OOP relevant to constructing a mathematical model of OOP such as NOOP. The emphasis in this report is on defining nominality, nominal typing and nominal subtyping of mainstream nominally-typed OO languages, and on contrasting the three notions with their counterparts in structurally-typed OO languages, i.e., with structurality, structural typing and structural subtyping, respectively. An additional appendix demonstrates these notions and other related notions, and the differences between them, using some simple code examples. A detailed, more technical comparison between nominal typing and structural typing in OOP is presented in other publications.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑