Scala Mixins - Five Gotchas

  • Constructor order
  • Multiple execution of constructor side-effects
  • No longer is-a
  • Colliding namespaces - method names can only be globally distinct
  • No other way to inject collaborators (or resort to setter injection???)
  • Stubbing can be hard work - mocking sometimes preferable
 
comments powered by Disqus