January 2020
Intermediate to advanced
470 pages
11h 13m
English
The specification of a function's arguments and the result is given by a signature. Type signatures are based on a type system called Hindley-Milner, which influenced several (mostly functional) languages, including Haskell, though the notation has changed from that of the original paper. This system can even deduce types that are not directly given; tools such as TypeScript or Flow also do this, so developers don't need to specify all types. Instead of going for a dry, formal explanation about the rules for writing correct signatures, let's work by examples. We only need to know the following:
Read now
Unlock full access