History

In this lesson, we'll learn about the history of C++ and talk about future concepts.

The Inspiration from Haskell

Type classes are interfaces for similar types. If a type is a member of a type class, it has to have specific properties. Type classes play a similar role in generic programming as interfaces play in object-oriented programming. Here you can see a part of Haskell’s type classes hierarchy.

Haskell Type Class Hierarchy
Haskell Type Class Hierarchy

Haskell’s type classes build a hierarchy. The type class Ord is a subclass of the type class Eq. Therefore, instances of the type class Ord have to be members of the type class Eq and in addition support the comparison ...