Tag Archives: structural typing

Structural Sub Typing in Scala

Structural Sub Typing in Scala

Structural Sub Typing in Scala Structural typing is compile time checked duck-typing. It allows us to specify the characteristics of a required type instead of an actual concrete type. Let’s create a new SBT project ScalaTyping. In this post we are going to discuss how Scala supports structural sub-typing. Let’s create a simple Scala SBT… Continue reading »