Pregunta:
What is the difference between nominal and structural type systems? Describe how this applies to type checking.
Autor: Kate WRespuesta:
Nominal type systems are about names. Structural ones are about structure or shape. The type equivalence check on a function call checks whether the argument is an instance of a class of a given name if nominal. With structural, it doesn't care about which constructor its argument came from, only whether it has the necessary properties.
0 / 5 (0 calificaciones)
1 answer(s) in total