2 ms·
Regarding Haskell's type system, it's not even remotely like any type system you're familiar with if you haven't used Haskell yet. Haskell is 'meta typed' (not
by SkyMarshal 15y ago
Regarding Haskell's type system, it's not even remotely like any type system you're familiar with if you haven't used Haskell yet.
Haskell is 'meta typed' (not a real term, just made that up). In Haskell, vars have data types, functions have type signatures, and even type signatures have types called kinds. A type signature is a specification of what types of parameters a function takes, and what type of result it returns. A kind specifies how many rounds of currying a type signature requires.
And it gets more sophisticated from there. Languages like Java with just mere data types are baby typed at best. Not even remotely comparable.