Declarative Events for Object-Oriented Programming
Year: 2010
Type: article
Abstract: In object-oriented designs inversion of control is achieved by an event-driven programming style based on impera-tively triggered events. An alternative approach can be found in aspect-oriented programming, which defines events as declarative queries over implicitly available events. This helps to localize definition of events and avoid preplanning, but lacks a clean integration with object-oriented features and principles. The contribution of this paper is a concept of object-oriented events that combines imperative, declarative and implicit events and provides their seamless integration with object-oriented features, preserving encapsulation and modular reasoning. We present an efficient and type-safe implementation of the concept as an extension to the SCALA language. 1.
Institution: Technische Universität Darmstadt
Language: English
Subfield: Software
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W562223615
