Self Type in Scala
Jun 10, 2022 · 3 min read · Introduction Self Types are a way of specifying the dependencies for a class/trait in Scala. Using this, the compiler can enforce to provide the required dependencies while instances are created. This is widely used in Scala, especially in cake patte...
SNick commented