arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 0806.4746cs.PL
收藏

面向概念的程序设计

Concept-Oriented Programming

Alexandr Savinov

摘要:

面向对象编程(OOP)的目的是通过将对象的表示和访问机制隐藏在原语引用中来描述对象的结构和行为。在这篇文章中,我们描述了一种方法,称为面向概念的编程(COP),它侧重于建模参考,假设他们也拥有应用程序特定的结构和行为占了很大一部分,甚至大部分的整体程序的复杂性。COP中的引用是完全合法的,并获得与对象相同的地位,而函数则分布在对象和引用之间。为了支持这种设计,我们引入了一个新的编程结构,称为概念,它概括了传统的类和概念包含关系概括类继承。COP的主要优点是它允许程序员描述任何程序的两个方面:显式使用的对象函数和具有横切性质的引用的中间功能,并在对象访问期间在幕后隐式执行。

英文摘要:

Object-oriented programming (OOP) is aimed at describing the structure and behaviour of objects by hiding the mechanism of their representation and access in primitive references. In this article we describe an approach, called concept-oriented programming (COP), which focuses on modelling references assuming that they also possess application-specific structure and behaviour accounting for a great deal or even most of the overall program complexity. References in COP are completely legalized and get the same status as objects while the functions are distributed among both objects and references. In order to support this design we introduce a new programming construct, called concept, which generalizes conventional classes and concept inclusion relation generalizing class inheritance. The main advantage of COP is that it allows programmers to describe two sides of any program: explicitly used functions of objects and intermediate functionality of references having cross-cutting nature and executed implicitly behind the scenes during object access.

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

↑