Ix Dev 9 - Ix Script Continued
Traits
Traits are similar to attributes and annotations of other languages - user-land additional data and functionality attached to language elements such as function definitions or statements.
Traits are added in a double-prefixed tuple and referred to by element label. The VM handles some traits specifically - such as onBefore/onAfter interceptors - but for others, they can be retrieved at run-time with :traitsOf.
Loading syntax highlighter...