[Paper Review] An Approach to Programming Based on Concepts
This paper introduces a new programming paradigm centered on 'concepts'—a dual-structure abstraction combining a reference class and an object class—enabling generalized object-oriented programming through inheritance, polymorphism, and life-cycle management. The approach formalizes concepts via inclusion relations and introduces mechanisms like context stacks and dual methods, offering a unified model that extends traditional OOP with stronger encapsulation and type safety.
In this paper we describe a new approach to programming which generalizes object-oriented programming. It is based on using a new programming construct, called concept, which generalizes classes. Concept is defined as a pair of two classes: one reference class and one object class. Each concept has a parent concept which is specified using inclusion relation generalizing inheritance. We describe several important mechanisms such as reference resolution, context stack, dual methods and life-cycle management, inheritance and polymorphism. This approach to programming is positioned as a new programming paradigm and therefore we formulate its main principles and rules.
Motivation & Objective
- To generalize traditional object-oriented programming by introducing a new abstraction called 'concept' that unifies reference and object classes.
- To address limitations in existing OOP models by enabling stronger encapsulation and type safety through structured concept hierarchies.
- To formalize a new programming paradigm with defined principles, rules, and mechanisms such as context stacks and reference resolution.
- To support polymorphism and inheritance through a parent-child relationship between concepts, generalizing classical inheritance.
Proposed method
- A concept is defined as a pair: a reference class and an object class, both of which are first-class constructs in the model.
- Inheritance is modeled via an inclusion relation between concepts, where a child concept inherits from a parent concept.
- Reference resolution is managed through a context stack that tracks active concept instances during execution.
- Dual methods are introduced: one for the reference class and one for the object class, enabling polymorphic behavior.
- Life-cycle management is formalized through methods that control creation, destruction, and state transitions of concept instances.
- The model supports polymorphism by allowing operations to be dispatched based on the dynamic type of the object class within a concept.
Experimental results
Research questions
- RQ1How can object-oriented programming be generalized beyond traditional class-based models using a new abstraction?
- RQ2What mechanisms are required to support reference resolution and dynamic dispatch in a dual-class model?
- RQ3How can inheritance and polymorphism be formalized in a concept-based model while preserving type safety?
- RQ4What role does the context stack play in managing concept instances during program execution?
- RQ5How can life-cycle management be integrated into the concept model to ensure correct resource handling?
Key findings
- The concept model successfully generalizes class-based OOP by introducing a dual-structure abstraction that separates reference and object concerns.
- The inclusion relation between concepts enables a clean, formalized form of inheritance that extends beyond single-class hierarchies.
- Reference resolution via the context stack allows dynamic dispatch and supports polymorphic behavior in a type-safe manner.
- Dual methods provide a mechanism for defining behavior at both the reference and object level, enhancing expressiveness and control.
- Life-cycle management is effectively integrated into the model, allowing for predictable initialization and cleanup of concept instances.
- The approach demonstrates that a new programming paradigm can be formally defined with consistent principles, rules, and mechanisms, offering a foundation for future language design.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.