Are you an EPFL student looking for a semester project?
Work with us on data science and visualisation projects, and deploy your project as an app on top of Graph Search.
This lecture introduces the concept of enums as a shorthand for case class hierarchies, focusing on modeling pure data without associated functions. Topics covered include defining enums for algebraic data types, pattern matching on enums, simple enums, and enums with parameters and methods. The lecture also explores how enums are expanded by the Scala compiler and their usefulness in domain modeling tasks.