The power of symmetry: unifying inheritance and generative programming
Lists
Only you see this
Abstract
I present the Ohmu language, a unified object model which allows a number of "advanced" techniques such as aspects, mixin layers, parametric polymorphism, and generative components to be implemented cleanly using two basic concepts: block structure and inheritance. I argue that conventional ways of defining classes and objects have created artificial distinctions which limit their expressiveness. The Ohmu model unifies functions, classes, instances, templates, and even aspects into a single construct - the structure. Function calls, instantiation, aspect-weaving, and inheritance are likewise unified into a single operation - the structure transformation. This simplification eliminates the distinction between classes and instances, and between compile-time and run-time code. Instead of being compiled, programs are reduced using partial evaluation, during which the interpreter is invoked at compile-time. Within this architecture, standard OO inheritance becomes a natural vehicle for creating meta-programs and automatic code generators - the key to a number of recent domain-driven programming methodologies.
BibTeX
@inproceedings{hutchins2003power,
author = {DeLesley Hutchins},
title = {{The power of symmetry: unifying inheritance and generative programming}},
booktitle = {OOPSLA Companion},
year = {2003},
url = {https://openreview.net/forum?id=zyLfzLKdVG},
}Loading related content...