Buscar
Estás en modo de exploración. debe iniciar sesión para usar MEMORY

   Inicia sesión para empezar


Por supuesto:

TypeScript

» Iniciar este curso
(Practica preguntas similares gratis)
Pregunta:

What is the difference between nominal and structural type systems? Describe how this applies to type checking.

Autor: Kate W



Respuesta:

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

Autor

Kate W
Kate W