Re:Why We Use OCaml
by dragonwriter on Monday November 16, 2015 @06:16PM
(#10578046)
Statically checked pattern matching validates that the provided patterns cover all possible values the variable could have (the whole space of the variables declared/inferred type). So the actual runtime value is not necessary: if the match is exhaustive, there is no possible value that could be taken at runtime that would result in no match.
[ Parent
| on HN ]
There are no comments on this comment yet.