继承的本质
The Essence of Inheritance
摘要:
程序设计语言具有双重目的:将程序传送给计算机,并将程序传送给人类。事实上,正是这种双重目的使得程序设计语言设计成为一个受约束和具有挑战性的问题。继承是第二个目的的一个重要方面:它是改善交流的一种工具。人类最容易理解新概念的方式是先看一些具体的例子,然后再抽象这些例子。继承的本质是它反映了这个过程:它提供了一种从具体到抽象的形式化机制。
英文摘要:
Programming languages serve a dual purpose: to communicate programs to computers, and to communicate programs to humans. Indeed, it is this dual purpose that makes programming language design a constrained and challenging problem. Inheritance is an essential aspect of that second purpose: it is a tool to improve communication. Humans understand new concepts most readily by first looking at a number of concrete examples, and later abstracting over those examples. The essence of inheritance is that it mirrors this process: it provides a formal mechanism for moving from the concrete to the abstract.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。