kebab is vegetarian VegetarianKebab, (kebab) => ... , //do something else for all other kebab Kebab, (kebab) => ... , //this is definitely not a kebab t.Any, (x) => ... ); The value to match against Type to match Function to execute if the associated type is matched
can be seen as sets • There is a set algebra we can use to combine types (algebraic typing) • Use tComb (we do it, everyday, on all production projets) • And, moreover, it enables a better domain representation