Types of Expressions

Learn how the types of expressions can be defined and how type checking works.

Insufficient syntactic validation

Have you ever heard or read something that is syntactically correct but does not make any sense? We all have. Consider, for instance, the phrase “cute table cat.” Syntactically speaking, it is a perfectly valid English noun phrase, but the meaning makes no sense, at least in real life. In particular, combining the noun “table” with the noun “cat” to form a noun phrase might perfectly follow the syntactic rules of English grammar. Yet, they don’t seem to fit together from the semantic point of view.

Get hands-on with 1200+ tech skills courses.