Hey! I’ve put together a prototype for exhaustive pattern matching in Harbour, using pure Harbour and PP pragmas. The main idea is to have the compiler raise an error when a match (currently syntactic sugar for DO CASE) doesn't cover all possible cases for a given type.
You can check it out here:
https://github.com/diegopego/harbour-core/tree/master/contrib/diego
If you’re not familiar with exhaustive pattern matching, it ensures that all possible cases are handled explicitly at compile time. For a quick overview, these links give good context:
I’d love to hear your thoughts and feedback!