Traits (and Roles) are very much like Functors in functional programming.
If you mean Functors in the SML/OCaml sense, then yes. If you mean Functors like in Haskell, then not really, they are closer to Typeclasses in Haskell.
In reply to Re: Roles and functional programming
by stvn
in thread Roles and functional programming
by zby
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |