Implicit invocation of traits

  • Authors:
  • Thomas Pawlitzki;Friedrich Steimann

  • Affiliations:
  • Fakultät für Mathematik und Informatik, Fernuniversität in Hagen, Hagen, Germany;Fakultät für Mathematik und Informatik, Fernuniversität in Hagen, Hagen, Germany

  • Venue:
  • Proceedings of the 2010 ACM Symposium on Applied Computing
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

We propose the introduction of a special kind of traits that implement methods implicitly invoked when an event of a given type occurs. Events are announced explicitly in the source code at their place of origin, and classes publishing events, as well as traits subscribing to them, are explicitly marked as such. The result is greater independence of publisher and subscriber (when compared to other implementations), as well as an explicit interface between the two. An implementation in Scala is briefly sketched.