Manual: match guards example code is wrong
In the match guards example, the
_ case is listed first. That prevents every other case from running, since
_ always matches.
The manual states:
A case which is _ will execute if all other cases have failed.
Which I understood to mean
_ will always match and therefore, when listed last, will execute if all other cases failed. Which is why I think the bug is in the example code. Another possible interpretation is that Ion should always execute the
_ case last, regardless of where you put it. I assume that is not the intention.