Skip to content
  • Home
  • Blog
  • Talks
  • Projects
  • Contact

spiros.blog()

Spiros Tzavellas’s blog, mostly on software development and Java.

trait

Using self types for trait composition

While using traits in a small Scala project, I finally understood when to use self types. Self types are often characterized by Scala newbies as an incomprehensible language feature with no obvious usage. After coding with traits for a while I understood that self types are an essential information hiding tool for composing traits. I […]

continue reading Using self types for trait composition
Proudly powered by WordPress | Theme: Aventurine by Kelly Dwan & Mel Choyce.