home search about rss feed twitter ko-fi

Introduction to Scala Types, Part 1 (Bounds) (Video)

In this free Scala training video I provide an introduction to using Scala types and the type system, including looking at generic types, bounds, and variance.

As I note in the video, unless you’re the creator of a Scala library, you don’t have to know too much about these topics, and Martin Odersky discusses this in his Six Levels of Developers. However, to contradict my own statement a little bit, it will definitely help you if you can read the type signatures of methods that use generic types, including higher-order functions like map, filter, etc.

Therefore, in this lesson we start looking at generic types parameters for methods, functions, and classes, as well as classes that extend traits and classes that use generic type parameters.

Update: All of my new videos are now on
LearnScala.dev