../
Weekend Workout
Programatically speaking, what is a type? It has a constructor and takes in some existing type but I don’t know where it maps this to.
- Constructors are not the same OOP constructor that you think about
- They are used to just map “bundle” data to the new structure
structure is a product type. It is used to bundle bunch of existing data types into a single unit
It has a bunch of “constructors” that you have to provide valid values of