Why reasonml does not uses semicolons in pattern matching with one expression like here
switch (inter) {
| Interval(low, high) => printf(“Interval %d - %d”, low, high)
| Empty => print_string(“Empty interval”)
};
But forces its use here
if (env1) {
Ok; } else {
Nothing;
};
Personally I think semicolon in reason does not make sense, it makes sense in OCaml and Rust where its use is to finish a sentence with side effect, but in reason basically you have to put them kinda everywhere