killdream/boo — Issue #2: Implement a trait system
Author: killdream
Created: 2011-11-19 22:41:16+00:00
State: open

The current implementation of traits did suck quite a lot, and it was removed from the 1.1 release. 2.0 release will include them so they can be used in a range of future and more complex projects.

They need to include:

- summation (trait1 + trait2)
- difference (trait1 - trait2)
- overriding
- mapping (trait[x → y])

Previous collision handling filters (rename, prefix, import and exclude) may be used, but will have to work with objects seamlessly as well. Traits will need to be a separate primitive, in the veins of `extend`.