Python data classes and Haskell records

This Python lesson discusses a decorator called dataclass. The primary role of a Python data class is to simply hold the values that were passed as constructor arguments. This feature strongly resembles Haskell datatypes, particularly when we use Haskell’s record syntax.