Skip to content
PragTob edited this page Jan 12, 2013 · 11 revisions

TraitClasses for squeak Smalltalk

It is the goal of trait classes to include parts of other classes in trait like fashion. We want to do this opposed to separate Trait Classes because this way the programmer doesn't have to think about whether or not something should be a trait, you can just use pre existing classes.

Principles

  1. programmers need to specify all ambiguous cases: all conflicts don't change the target
  2. tool support to show what needs to be decided

Limitations

  • Variable sized classes → for now not allowed as traits
  • Unavailable source code in combination with shadowing
Clone this wiki locally