Pitch: support for case and let when using where within switch and catch

Thank you for clarifying. There could be some confusion where , preceding case means ‘or‘ and , following case means ‘and‘, but there is already strange behaviour without this change:

The compiler itself provides a warning when , as ‘or‘ is combined with where. Making another suggestion, this could be used for where to avoid the confusion:

switch a {
case {.one,.two} where ... :
// either one or two, but always check the where condition
case .one,
    .two where ... :
// one or (two with the where condition)
}

The choice of { } is to avoid looking like a tuple ( ) or like an array [ ]. Consistency with bound variables still applies.

Again, I am aiming to bring parity to where, if, guard and while, that is, make them act in the same way. If the , was ‘or‘ for where and simultaneously ‘and‘ for if, guard and while, this would contravene this aim.