scala - What is the difference between self-types and trait subclasses? - Stack Overflow
It is used for Dependency Injection, such as in the Cake Pattern. There exists a great article covering many different forms of dependency injection in Scala, including the Cake Pattern. If you look up Google for Cake Pattern and Scala, you'll get many links, including presentations and videos. For now, here is a link to another question.
Read full article from scala - What is the difference between self-types and trait subclasses? - Stack Overflow
No comments:
Post a Comment