News for hackers. Stuff that matters.
Re:Compiler Errors for Humans (2015) by ygaitonde on Thursday November 24, 2022 @03:09PM (#33735663)
In OCaml, if your pattern match is non-exhaustive, then the compiler generates example patterns that you aren't accounting for in addition to showing the missing type.

Here's an example: https://stackoverflow.com/questions/22737031/this-pattern-ma...

There are no comments on this comment yet.