Written form to keep for later: https://blog.rockthejvm.com/self-types/
This video is for the Scala programmer who was either baffled by the lambda-like syntax in trait definitions which means something totally different, OR by a programmer who needs to enforce type constraints between two otherwise unrelated hierarchies of types.
I will demo various approaches and why they fail, and then I will introduce self-types and why they are useful. With 10 minutes of your time you'll walk away knowing WHY self-types were invented and HOW to best use them.
Follow Rock the JVM on:
LinkedIn: / rockthejvm
Twitter: / rockthejvm
Blog: https://rockthejvm.com/blog
-------------------------------------------------------------------------
Home: https://rockthejvm.com
-------------------------------------------------------------------------