Question: what is a switching expression?
Answer: The switch expression provides for switch -like semantics in an expression context. It provides a concise syntax when the switch arms produce a value. The following example shows the structure of a switch expression.