Switch expressions simplify complex branching logic and make code more readable.
var price = plan switch
{
"free" => 0,
"pro" => 19,
"biz" => 49,
_ => throw new Exception("Unknown plan")
};
They are ideal for pricing models, rules engines, and state transitions.

